

   tsp {base}                                   R Documentation

   TTsspp AAttttrriibbuuttee ooff TTiimmee--SSeerriieess--lliikkee OObbjjeeccttss

   DDeessccrriippttiioonn::

        `tsp' returns the `tsp' attribute (or `NULL').  It is
        included for compatibility with S version 2. `tsp<-'
        sets the `tsp' attribute. `hasTsp' ensures `x' has a
        `tsp' attribute, by adding one if needed.

   UUssaaggee::

        tsp(x)
        tsp(x) <- value
        hasTsp(x)

   AArrgguummeennttss::

          x: a vector or matrix or univariate or multivariate
             time-series.

      value: a numeric vector of length 3 or `NULL'.

   DDeettaaiillss::

        The `tsp' attribute was previously described here as
        `c(start(x), end(x), frequency(x))', but this is incor-
        rect.  It gives the start time in time units, the end
        time and the frequency.

        Assignments are checked for consistency.

        Assigning `NULL' which removes the `tsp' attribute and
        any `"ts"' class of `x'.

   SSeeee AAllssoo::

        `ts', `time', `start'.

