Tsp Attribute of Time-Series-like Objects
tsp returns the
tsp attribute (or
It is included for compatibility with S version 2.
x has a
tsp attribute, by adding one if needed.
tsp(x) tsp(x) <- value hasTsp(x)
- a vector or matrix or univariate or multivariate time-series.
- a numeric vector of length 3 or
tsp attribute gives the start time in time units,
the end time and the frequency (the number of observations per unit of
time, e.g. 12 for a monthly series).
Assignments are checked for consistency.
NULL which removes the
"mts") class of
An object which differs from
xonly in the
hasTspadds, if needed, an attribute with a start time and frequency of 1 and end time
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.