Extracts a subset of the time series from a grouped time series object.

# S3 method for gts
window(x, ...)

Arguments

x

An object of class gts.

...

All other arguments are passed to window.ts.

Author

Rob J Hyndman

Examples


window(htseg2, start = 2000, end = 2001)
#> Hierarchical Time Series 
#> 4 Levels 
#> Number of nodes at each level: 1 2 4 10 
#> Total number of series: 17 
#> Number of observations per series: 2 
#> Top level series: 
#> Time Series:
#> Start = 2000 
#> End = 2001 
#> Frequency = 1 
#> [1] 0.4762250 0.7640473