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'.