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 data, or program a loop to pick out the correct data. I am wondering if exist an easier way to select month data in a ts object. Thank you a lot for your help. SGeco [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.