Learn R Programming

tframe (version 2007.5-2)

seriesNames: Names of Series in a time series object

Description

Extract or set names of series in a time series object.

Usage

seriesNames(x)
    ## S3 method for class 'default':
seriesNames(x)

seriesNames(x) <- value ## S3 method for class 'default': seriesNames(x) <- value ## S3 method for class 'ts': seriesNames(x) <- value

Arguments

x
a time series object.
value
names to be given to time series.

Value

  • The first usage returns a vector of strings with the series names. The assignment method makes names (a vector of strings) the series names of data.

See Also

tframed, seriesNamesInput, seriesNamesOutput

Examples

Run this code
z <- matrix(rnorm(100), 50,2)
    seriesNames(z) <- c("a", "b")
    seriesNames(z)

Run the code above in your browser using DataLab