[R] time series object

Gabor Grothendieck ggrothendieck at myway.com
Wed Jun 16 02:01:08 CEST 2004




?window


Date:   Tue, 15 Jun 2004 18:43:04 -0500 
From:   Laura Holt <lauraholt_983 at hotmail.com>
To:   <r-help at stat.math.ethz.ch> 
Subject:   [R] time series object 

 
Hi R People:

I have a monthly time series x.ts which runs from 1/1995 through 12/2003.

>x.ts <- ts(x,start=1995,freq=12)
>str(x.ts)
Time-Series [1:108] from 1995 to 2004: -1.638 -0.236 0.830 -0.548 0.363 
...
>

My question: is there a way to print the observations from 1/1999 to 6/1999, 
please?
(other than x.ts[49:54])

Thank you in advance!




More information about the R-help mailing list