Re: [R] select month data in ts objects

2012-05-03 Thread Gabor Grothendieck
On Wed, May 2, 2012 at 4:27 PM, S. Georgakarakos wrote: > In a time series ts object, like the z1.ts below: > > z1 = array(1:235) > > z1.ts = ts(z1, frequency =12) > > I would like to select only a certain month, for instance the "February" > data > > If I transform the data to a matrix, I have th

[R] select month data in ts objects

2012-05-02 Thread S. Georgakarakos
In a time series ts object, like the z1.ts below: z1 = array(1:235) z1.ts = ts(z1, frequency =12) I would like to select only a certain month, for instance the "February" data If I transform the data to a matrix, I have the problem that 235 is not a multiple of 12 I do not like to cut or add