Extract a Subset of Series
Extract a subset of series from a tframed object.
selectSeries(x, series = seqN(nseries(x))) ## Default S3 method: selectSeries(x, series = seqN(nseries(x))) ## S3 method for class 'ts' selectSeries(x, series = seqN(nseries(x)))
x |
A tframed object. |
series |
The subset of series to retain. |
This is like [ , , drop=FALSE] but retains class, series name and tframe information. It also provides a methods which works with multivariate series which are not matrices (e.g. tfPADIdata).
A tframed object.
z <- selectSeries(matrix(rnorm(1000), 100,10), series=c(2, 5, 6))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.