aggts {hts} | R Documentation |
Extract selected time series from a gts object
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
aggts(y, levels, forecasts = TRUE)
Arguments
y |
An object of class |
levels |
Integer(s) or string(s) giving the specified level(s). |
forecasts |
If |
Author(s)
Earo Wang
See Also
Examples
aggts(htseg1, levels = c(0, 2))
aggts(infantgts, levels = "State")
[Package hts version 6.0.3 Index]