units {timeSeries}R Documentation

Get and Set Unit Names of a 'timeSeries'

Description

Gets and sets the column names of a 'timeSeries' object. The column names are also called units or unit names.

Usage

getUnits(x)         
setUnits(x) <- value

Arguments

x

a timeSeries object.

value

a vector, a data.frame or a matrix object of numeric data.

See Also

timeSeries()

Examples

## 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)

[Package timeSeries version 2160.95 Index]