merge                package:fSeries                R Documentation

_M_e_r_g_e _t_w_o _t_i_m_e_S_e_r_i_e_s _o_b_j_e_c_t_s

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

     Merges two timeSeries objects.

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

     ## S3 method for class 'timeSeries':
     merge(x, y, units = NULL, ...)

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

   units: an optional character string, which allows to overwrite the 
          current column names of a 'timeSeries' object. By default 
          'NULL' which means that the column names are selected
          automatically. 

    x, y: two objects of class 'timeSeries'. 

     ...: arguments passed to other methods. 

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

     returns an S4 object of class 'timeSeries'.

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

     Diethelm Wuertz for the Rmetrics R-port.

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

     ## data - 
        x = as.timeSeries(data(msft.dat))[1:20, "Open"]
        
     ## aggregate -
        merge(x, returnSeries(x))

