Description Usage Arguments Value See Also Examples
Extract or set names of series in a time series object.
1 2 3 4 5 6 7 8 9 | seriesNames(x)
## Default S3 method:
seriesNames(x)
seriesNames(x) <- value
## Default S3 replacement method:
seriesNames(x) <- value
## S3 replacement method for class 'ts'
seriesNames(x) <- value
|
x |
a time series object. |
value |
names to be given to time series. |
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.
1 2 3 | z <- matrix(rnorm(100), 50,2)
seriesNames(z) <- c("a", "b")
seriesNames(z)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.