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)

