Thank you very much for your reply. The command "window" does help.

> a1<-11:22> a1ts<-ts(a1, frequency=4, start=c(1978,1))> a1tsw<-window(a1ts, c(1978,3), c(1979,2) )> a1tsw     Qtr1 Qtr2 Qtr3 Qtr4
1978             13   14
1979   15   16          > a1tsw[2:3][1] 14 15

>



2012/2/16 R. Michael Weylandt <michael.weylandt@gmail.com>

> ?window may help.
>
> Michael
>
> On Thu, Feb 16, 2012 at 3:08 AM, jpm miao <miaojpm@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@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.
>

	[[alternative HTML version deleted]]

