powered by
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
a 'timeSeries' object.
a vector of unit names.
vector
timeSeries()
## A Dummy timeSeries Object tS <- dummySeries() tS ## Get the Units - getUnits(tS) ## Assign New Units to the Series - setUnits(tS) <- c("A", "B") head(tS)
Run the code above in your browser using DataLab