merge.RGList              package:limma              R Documentation

_M_e_r_g_e _R_G_L_i_s_t _D_a_t_a _O_b_j_e_c_t_s

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

     Merge two microarray data sets represented by RGLists.

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

     ## S3 method for class 'RGList':
     merge(x,y,...)

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

       x: 'RGList-class' object with list components 'R', 'G', 'Rb' and
          'Gb' containing the foreground and background intensities for
          each spot on each array.

       y: 'RGList' object, corresponding to the same genes as for 'x',
          possibly in a different order, but with different arrays.

     ...: other arguments are accepted but not used at present

_D_e_t_a_i_l_s:

     An 'RGList' is a list object containing numeric matrices all of
     the same dimensions. The RGLists are merged by merging each of the
     components by row names. Unlike when using 'cbind', row names are
     not required to be in the same order or to be unique. In the case
     of repeated row names, the order of the rows with repeated names
     in preserved. This means that the first occurrence of each name in
     'x$R' is matched with the first occurrence of the same name in
     'y$R', the second with the second, and so on. The final vector of
     row names is the same as in 'x'.

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

     An 'RGList' with the same components as 'x'. Component matrices
     have the same rows names as in 'x' but columns from 'y' as well as
     'x'.

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

     Gordon Smyth

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

     R base provides a 'merge' method for merging data.frames.

     An overview of limma commands for reading, subsetting and merging
     data is given in 3.ReadingData.

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

     R <- G <- matrix(11:14,4,2)
     rownames(R) <- rownames(G) <- c("a","a","b","c")
     RG1 <- new("RGList",list(R=R,G=G))

     R <- G <- matrix(21:24,4,2)
     rownames(R) <- rownames(G) <- c("b","a","a","c")
     RG2 <- new("RGList",list(R=R,G=G))

     merge(RG1,RG2)
     merge(RG2,RG1)

