[R] Help about time series
abunn
abunn at whrc.org
Mon Jan 31 20:36:45 CET 2005
?time
dat <- ts(rnorm(10), start = c(1900), frequency = 1)
dat[time(dat) == 1905]
HTH, Andy
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch]On Behalf Of Ferrari Nicolas
> Sent: Monday, January 31, 2005 2:26 PM
> To: 'R-help at lists.R-project.org'
> Subject: [R] Help about time series
>
>
> Hello,
>
> When I create a ts object, I would like to get a particular value of this
> time serie according to the date and not the rank.
> However, it seems necessary to use the rank as if it were a simple vector.
> I would be very grateful if you could help out of this.
> I thank you in advance,
>
> Nicolas Ferrari
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
More information about the R-help
mailing list