selectSeries: Extract a Subset of Series

Description Usage Arguments Details Value See Also Examples

View source: R/tframe.R

Description

Extract a subset of series from a tframed object.

Usage

1
2
3
4
5
6
    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)))
    

Arguments

x

A tframed object.

series

The subset of series to retain.

Details

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).

Value

A tframed object.

See Also

seriesNames

Examples

1
    z <- selectSeries(matrix(rnorm(1000), 100,10), series=c(2, 5, 6))

tframe documentation built on Sept. 23, 2019, 3:01 a.m.

Related to selectSeries in tframe...