tspar(x) tspar(x) <- value
The tspar attribute of a regular (rts) or irregular (its) time series may itself have an attribute "units" giving the units in which the interval between observations is measured. The tspar function returns this attribute if it exists.
The tspar function is generic, although it currently has no methods defined for it. The tspar<- function is generic, and will check correctness if x belongs to one of the time series classes.
x <- rts( as.factor(letters), start = c(0,5), freq = 7, units = "weeks") tspar(x) tspar(x) <- c( start = 1, deltat = 1/7, frequency = 7)