Time Units of a Time Series

DESCRIPTION:

Returns the value of the attribute describing the units in which the time domain is measured for a time series.

USAGE:

units(x) 

REQUIRED ARGUMENTS:

x
a univariate or multivariate time series.

VALUE:

a character string which is the units attribute of the tspar attribute of a regular (class "rts") or irregular (class "its") time series, or the component of the tspar attribute of a calendar time series (class "cts").

SEE ALSO:

, , , .

EXAMPLES:

# the value of the units argument is returned 
rts.ex <- rts(freeny.x, start = c(0,3), freq = 7, units = "weeks") 
units(rts.ex)