

tsp {base}                                   R Documentation

_T_s_p _A_t_t_r_i_b_u_t_e _o_f _T_i_m_e_-_S_e_r_i_e_s_-_l_i_k_e _O_b_j_e_c_t_s

_D_e_s_c_r_i_p_t_i_o_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_s_a_g_e_:

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

_A_r_g_u_m_e_n_t_s_:

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

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

_D_e_t_a_i_l_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_e_e _A_l_s_o_:

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

