Re: [R] aggregate.ts help

2008-01-06 Thread tom soyer
Thanks Gabor!! On 1/6/08, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > > On Jan 6, 2008 5:17 PM, tom soyer <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I have a ts object with a frequency of 4, i.e., quarterly data, and I > would > > like to calculate the mean for each quarter. So for example: >

Re: [R] aggregate.ts help

2008-01-06 Thread Gabor Grothendieck
On Jan 6, 2008 5:17 PM, tom soyer <[EMAIL PROTECTED]> wrote: > Hi, > > I have a ts object with a frequency of 4, i.e., quarterly data, and I would > like to calculate the mean for each quarter. So for example: > > > ts.data=ts(1:20,start=c(1984,2),frequency=4) > > ts.data > Qtr1 Qtr2 Qtr3 Qtr4