tsSubsetWithIndices: Subset time series with provided indices

View source: R/helper.R

tsSubsetWithIndicesR Documentation

Subset time series with provided indices

Description

Use provided indices to subset a time series. The provided indices must be contiguous

Usage

tsSubsetWithIndices(x, indices)

Arguments

x

A time series object

indices

A contiguous vector of indices to use for subsetting

Value

A time series object appropriately subsetted using provided indices

Author(s)

Ganesh Krishnan

Examples

tsSubsetWithIndices(AirPassengers, c(3:10))

forecastHybrid documentation built on Aug. 8, 2025, 6:43 p.m.