In the function get.hist.quote how can I save the only date?
0 With library(zoo) SPY <- get.hist.quote("SPY", start = "2010-01-01", end = "2011-01-01", quote = "AdjClose", compression = "d", retclass = c("zoo","ts")) I get a matrix with date and associated prices, how can I save the only date? Writing coredata(SPY$Adjusted[,1]) does not work.. thanks r share | improve this question edited Nov 12 at 14:18 apitsch 582 2 16 asked Nov 12 at 14:04 Tommaso Dellolmo 7 5 add a comment | 0 With library(zoo) SPY <- get.hist.quote("SPY", start = "2010-01-01", end = "2011-01-01", quote = "AdjClose", compression = "d", retclass = c("zoo","ts")) I get a matrix with date and associated prices, how can I save the only date? Writing coredata(SPY$Adjusted[,1]) does not work.. thanks r share | improve this question edi