aggtts: Aggregate all levels of a hts object

Description Usage Arguments Author(s) See Also Examples

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
aggtts(y, nodes, labs)

Arguments

y

An object of class {hts}.

nodes

A list describing the node structure in the hts object.

labs

A list of labels of the nodes.

Author(s)

Vaughan Roberts

See Also

allts

Examples

1
2
## Not run: aggtts(htseg2$bts, htseg2$nodes, htseg2$labels)
aggtts(htseg2$bts, nodes=list(2,c(2,2),c(3,2,3,2)), labs=colnames(htseg2))

VaughanR0/Streamline-R documentation built on May 9, 2019, 9:43 p.m.