Re: [R] Help with selecting data from irregular time series {its} objects

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Wed 07 Jun 2006 - 23:03:54 EST

See: ?itsSubset

On 6/7/06, Ivan Kalafatic <ivan.kalafatic@gmail.com> wrote:
> If I understood correctly in irregular time series (its) objects, values are
> indexed by time stamps in POSIX format.
> But if I try to select the value of my time series corresponding to specific
> time stamp in the following way:
> x - its object
>
> i <- as.POSIXct("2006-05-19 15:30:00")
> x[i,] or x[i] or x[i,1] I get the error message: subscript out of bounds.
>
> If I use integers: x[1,1] it is ok I get the first element of time series.
>
> Is there a way to select elements by their corresponding dates?
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@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
>



R-help@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 Received on Thu Jun 08 00:49:34 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 08 Jun 2006 - 02:10:31 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.