Displaying 1 result from an estimated 1 matches for "new_xt".
Did you mean:
new_x
2012 Mar 04
1
Store vectors as values in xts time-series object
...with simple FALSE values):
> getSymbols(src='yahoo', Symbols=c('SPY')) # this loads xts object into global environment under name SPY
> v <- vector(length=length(index(SPY))) # this creates a vector of the same length as the SPY time-series
> new_xts <- xts(v, order.by=index(SPY)) # this works and creates a time-series with FALSE as every value
> new_xts
2009-01-01 FALSE
...
2010-02-01 FALSE
Now, I'd like to create a xts object with vectors as values.
Presumably, I want lists to be used as values:
> myList <-...