Displaying 1 result from an estimated 1 matches for "output01".
Did you mean:
output0
2009 Apr 15
2
shift/lag when merge zoo
...e the timegaps between the stamps.
I use the following code:
data.test <-
as.POSIXct(seq(data.input01[1,1],data.input01[nrow(data.input01),1],900),tz="GMT")
data.troughput01 <- as.zoo(data.input01$V2)
index(data.troughput01) <- as.POSIXct(data.input01$V1,tz="GMT")
data.output01 <-merge(data.troughput01,zoo(,data.test))
They look like that:
head(data.test)
[1] "2008-01-01 00:00:00 GMT" "2008-01-01 00:15:00 GMT" "2008-01-01 00:30:00
GMT"
[4] "2008-01-01 00:45:00 GMT" "2008-01-01 01:00:00 GMT" "2008-01-01 01:15:00
G...