allts: Extract all time series from a gts object

View source: R/aggts.R

alltsR Documentation

Extract all time series from a gts object

Description

The time series from all levels of a hierarchical/grouped time series or a forecasted hierarchical/grouped time series are returned as a multivariate time series.

Usage

allts(y, forecasts = TRUE)

Arguments

y

An object of class gts.

forecasts

If y contains forecasts and historical data, then forecasts indicates whether to return the forecasts or the historical data. Otherwise it is ignored.

Author(s)

Rob J Hyndman

See Also

aggts

Examples


allts(htseg1)


hts documentation built on Sept. 11, 2024, 7:32 p.m.