powered by
Use provided indices to subset a time series. The provided indices must be contiguous
tsSubsetWithIndices(x, indices)
A time series object appropriately subsetted using provided indices
A time series object
A contiguous vector of indices to use for subsetting
Ganesh Krishnan
tsSubsetWithIndices(AirPassengers, c(3:10))
Run the code above in your browser using DataLab