reduceM               package:PCpheno               R Documentation

_R_e_s_i_z_e _a _m_a_t_r_i_x

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

     Resize a matrix to the number of rows commun to a vector.

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

     reduceM(x, mat, threshold=0)

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

       x: Character or numeric vector.

     mat: Matrix sharing rownames with the supplied vextor x.

threshold: Threshold upon column. Only the columns with a 'colSums'
          above the  threshold are kept.

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

     Resized matrix.

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

     N. LeMeur

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

     mat <- matrix(c(1:25), nrow = 5, ncol = 5, dimnames = list(c(LETTERS[1:5]), c(1:5)))
     xx <- LETTERS[c(2, 4, 5)]
     reduceM(xx, mat)

