subset.madata            package:maanova            R Documentation

_S_u_b_s_e_t_t_i_n_g _M_i_c_r_o_a_r_r_a_y _d_a_t_a _o_b_j_e_c_t_s

_D_e_s_c_r_i_p_t_i_o_n:

     Return subsets of an an object of class 'madata' meeting given
     conditions.

_U_s_a_g_e:

     ## S3 method for class 'madata':
     subset(x, arrays, genes, ...)

_A_r_g_u_m_e_n_t_s:

       x: An object of class 'madata'. Read 'createData' for details.

  arrays: A vector specifying which arrays to keep or discard.

   genes: A vector specifying which genes to keep or discard.

     ...: Ignored at this point.

_V_a_l_u_e:

     An object of class 'madata' with specified arrays and genes.

_A_u_t_h_o_r(_s):

     Hao Wu

_E_x_a_m_p_l_e_s:

     data(kidney)
     ## Not run: 
     smalldata <- subset(kidney.raw, arrays=c(1,2))
     # take out the all arrays except array 1
     idx.array <- 1:kidney.raw$n.array
     smalldata <- subset(kidney.raw,arrays=(idx.array[-1]))
     # take out gene number 1 to 20
     smalldata <- subset(kidney.raw,genes=1:20)
     ## End(Not run)

