extract
Extract a subset of series.
Description
Extract a subset of series.
Usage
extract(data, n, n.input=NULL)
Required Arguments
- data
-
An object of class TSdata.
- n
-
A vector indicating the position of output series to include in the
new data set.
Optional Arguments
- n.input
-
A vector indicating the position of input series to include in the
new data set. If omitted then all inputs are included. If NULL then no
inputs are included.
Value
An object of class TSdata which inculdes the indicated series.
Examples
new.data.set <- extract(data, 1:2) #the first two series from data
return to Table of Contents