> Dear Community,
> say, I have an annual ts() object sampled from 1960 to 1969 like:
> ta<-ts(1:10, start=1960, frequency=1)
> How can I extract the value from the year 1965?
> I mean, not by:
> but by something like:
> where I'm directly referring to the year of the observation?
> Thank you in advance!
> ta <- ts(1:10, start = 1960)
> window(ta, start = 1965, end = 1965)
Start = 1965
End = 1965
Frequency = 1
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
email: ggrothendieck at gmail.com