Skip to content
Prev 227473 / 398500 Next

Split a time series

Hi all, can somebody help me to split a time series (zoo) object on monthwise. For example, suppose I have following time series object:

library(zoo)
dat1 <- zooreg(rnorm(300), start=as.Date("2009-01-01"), frequency=1)
dat2[[1]] <- all observation for jan-2009
dat2[[2]] <- all observation for feb-2009

etc.

Thanks