tsp                  package:stats                  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 incorrect. 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"' (or '"mts"') class of 'x'.

_R_e_f_e_r_e_n_c_e_s:

     Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) _The New S
     Language_. Wadsworth & Brooks/Cole.

_S_e_e _A_l_s_o:

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

