powered by
Extract or set names of series in a time series object.
seriesNames(x) # S3 method for default seriesNames(x) seriesNames(x) <- value # S3 method for default seriesNames(x) <- value # S3 method for ts seriesNames(x) <- value
seriesNames(x) <- value # S3 method for default seriesNames(x) <- value # S3 method for ts seriesNames(x) <- value
a time series object.
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.
names
tframed
# NOT RUN { z <- matrix(rnorm(100), 50,2) seriesNames(z) <- c("a", "b") seriesNames(z) # }
Run the code above in your browser using DataLab