aggts

0th

Percentile

Extract selected time series from a gts object

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.

Keywords
ts
Usage
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.

See Also

allts

Aliases
  • aggts
Examples
# NOT RUN {
aggts(htseg1, levels = c(0, 2))
aggts(infantgts, levels = "State")

# }
Documentation reproduced from package hts, version 5.1.5, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.