Learn R Programming

hts (version 6.0.3)

window.gts: Time window of a gts object

Description

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

Usage

# 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

Run this code

window(htseg2, start = 2000, end = 2001)

Run the code above in your browser using DataLab