timeSeries-slotUnits: Get and set unit names of a 'timeSeries'

unitsR 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 character vector of unit names.

See Also

timeSeries

Examples

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

timeSeries documentation built on Jan. 13, 2024, 8:16 p.m.