bind                 package:fSeries                 R Documentation

_B_i_n_d _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:

     Binds two timeSeries objects either by column or row.

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

     ## S3 method for class 'timeSeries':
     cbind(x, y, units = NULL)  
     ## S3 method for class 'timeSeries':
     rbind(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'. 

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

     returns a S4 object of class 'timedate'.

_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:12, ]

     ## cbind -
        cbind(x[, "Open"], returnSeries(x[, "Open"]), units = c("Open", "Return"))

     ## rbind -
        rbind(x[1:3, "Open"], x[10:12, "Open"])

