[Rd] Subsetting time series

From: Rob Hyndman <Rob.Hyndman_at_buseco.monash.edu.au>
Date: Tue 10 Aug 2004 - 12:38:15 EST


When part of a time series is extracted, the time series component is lost. e.g.,
x <- ts(1:10)
x[1:4]

It would be nice if there was a subsetting function [.ts to avoid this problem. However, it is beyond my R-coding ability to produce such a thing. Is someone willing to do it?

Rob



Professor Rob J Hyndman
Department of Econometrics & Business Statistics Monash University, VIC 3800, Australia.
http://www-personal.buseco.monash.edu.au/~hyndman/

R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue Aug 10 12:42:13 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 08:59:17 EST