I would like to have a time series over an arbitrary time period stored in a vector. So for example, I would like something like “SPY” stored within a vector for the past year spaced by daily time steps. The vector would therefore be size 365 and I would be able to call the ith day from it by spy[i]. How do I make a variable that stores a time series in this way?

Author