units | R Documentation |
Gets and sets the column names of a "timeSeries"
object. The
column names are also called units or unit names.
getUnits(x)
setUnits(x) <- value
x |
a |
value |
a character vector of unit names. |
timeSeries
## A Dummy 'timeSeries' Object
tS <- dummyMonthlySeries()
tS
## Get the Units -
getUnits(tS)
## Assign New Units to the Series -
setUnits(tS) <- c("A", "B")
head(tS)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.