Murali.MENON at fortisinvestments.com
2009-Jul-02 11:33 UTC
[R] convert xts vector into matrix
hi folks, if i have an xts object as follows: library(xts)> dd <- as.POSIXct(strptime(c("2009-06-01 08:00:00", "2009-06-0108:30:00","2009-06-01 09:00:00","2009-06-02 08:00:00", "2009-06-03 08:00:00", "2009-06-03 08:30:00"),"%Y-%m-%d %H:%M:%S"))> a <- xts(1:6,dd) > a[[alternative HTML version deleted]]