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