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

Gabor Grothendieck ggrothendieck at gmail.com
Wed Jun 7 15:03:54 CEST 2006

See: ?itsSubset

On 6/7/06, Ivan Kalafatic <ivan.kalafatic at 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 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