[R] How can we access element(s) of a time series object?
R. Michael Weylandt
michael.weylandt at gmail.com
Thu Feb 16 15:17:33 CET 2012
?window may help.
Michael
On Thu, Feb 16, 2012 at 3:08 AM, jpm miao <miaojpm at gmail.com> wrote:
> Hello,
>
> Let us convert a vector to a time series object starting in 1978Q1:
> FRW<-ts(FRW0, frequency=4, start=c(1978,1))
> FRW[3:6] represents the data from 1978Q3 to 1979Q2. Could we access the
> data by the time (1978Q3 to 1979Q2) instead of FRW[3:6]?
>
> Thanks,
>
> miao
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
More information about the R-help
mailing list