tseries               package:pastecs               R Documentation

_C_o_n_v_e_r_t _a '_r_e_g_u_l' _o_r _a '_t_s_d'  _o_b_j_e_c_t _i_n_t_o _a _t_i_m_e _s_e_r_i_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Regulated series contained in a 'regul' object or components
     issued from a time series decomposition with 'tsd' are extracted
     from their respective object and converted into uni- or
     multivariate regular time series ('rts' objects in Splus and 'ts'
     objects in R)

_U_s_a_g_e:

     tseries(x)

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

       x: A 'regul' or 'tsd' object 

_V_a_l_u_e:

     an uni- or multivariate regular time series

_N_o_t_e:

     To extract some of the time series contained in the 'regul' or
     'tsd' objects, use the `extract()' method

_A_u_t_h_o_r(_s):

     Philippe Grosjean (phgrosjean@sciviews.org), Frdric Ibanez
     (ibanez@obs-vlfr.fr)

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

     `is.tseries', `regul', `tsd'

_E_x_a_m_p_l_e_s:

     data(releve)
     rel.regy <- regul(releve$Day, releve[3:8], xmin=6, n=87, units="daystoyears",
             frequency=24, tol=2.2, methods="linear", datemin="21/03/1989",
             dateformat="d/m/Y")
     # This object is not a time series
     is.tseries(rel.regy)     # FALSE
     # Extract all time series contained in the 'regul' object
     rel.ts <- tseries(rel.regy)
     # Now this is a time series
     is.tseries(rel.ts)       # TRUE

