Displaying 1 result from an estimated 1 matches for "bckkret".
Did you mean:
bckret
2006 Nov 29
2
problem with indexing a zoo object
...took me a while to even get to this point
because I was taking is.infinite of fwdret and abs of bckret rather than
their respective coredatas and that was really causing a mess because of
the different indexing that was getting returned.
Thanks.
# SET SEED
set.seed(1)
# CREATE 2 ZOO OBJECTS, bckkret and fwdret OF MINUTE DATA OVER THE
WHOLE DAY
x.date<-as.Date(paste(2003,01,01,sep="-"))
allminutes<-as.POSIXct(format(x.date,"%Y-%m-%d")) + 60 * seq(1, 24 * 60)
bckret<-zoo(matrix(abs(rnorm(1440)),nc=1),allminutes)
fwdret<-zoo(matrix(abs(rnorm(1440)),nc=1),allminute...