aggts: Extract selected time series from a gts object

Description Usage Arguments Author(s) See Also Examples

View source: R/aggts.R

Description

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

Usage

1
aggts(y, levels, forecasts = TRUE)

Arguments

y

An object of class {gts}.

levels

Integer(s) or string(s) giving the specified level(s).

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)

Earo Wang

See Also

allts

Examples

1
2
aggts(htseg1, levels = c(0, 2))
aggts(infantgts, levels = "State")

earowang/hts documentation built on June 12, 2018, 4:37 p.m.