[R] Split a time series

2010-07-14 Thread Megh Dal
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) From dat1, I want to create a list-object dat2 like: dat2[[1]] - all

Re: [R] Split a time series

2010-07-14 Thread Achim Zeileis
On Wed, 14 Jul 2010, Megh Dal wrote: 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) From dat1, I want to create a