reduceMatNew            package:apComplex            R Documentation

_R_e_m_o_v_e _m_a_t_r_i_x _c_o_l_u_m_n_s

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

     This function eliminates columns that are identically equal to or
     strictly less than other columns in a matrix.  This is an
     alternate version of reduceMat.  It allows a distinction between
     previously reduced columns of a matrix and new columns that have
     not yet been reduced.

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

     reduceMatNew(mat, newvec, compare = "equal")

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

     mat: 'mat' is a matrix.

  newvec: 'newvec' is a vector with length equal to the number of
          columns of 'mat'.  'newvec' contains a 1 for  new column and
          0 for a previously reduced column.  The order of the entries
          in 'newvec' should correspond to the columns of 'mat'.

 compare: 'compare' is a character equal to "equal" (default) or
          "less".

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

     If 'compare' is set to "equal", then all new columns, indicated in
     'newvec', which are identically equal to another column in the
     previously reduced columns of 'mat' are removed from the matrix.  

     If 'compare' is set to "less", then a new column is removed from
     the matrix if all of its entries are less than all entries of
     another column in the matrix.

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

     A matrix with columns eliminated according to the criteria
     specified in 'compare'.

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

     Denise Scholtens

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

     'reduceMat','vecInMat','whichVecInMat'

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

     a <- matrix(c(1,0,1,1,1,0,1,0,1,1,0,0),nrow=3)
     reduceMatNew(a,newvec=c(0,0,1,1))
     reduceMatNew(a,newvec=c(0,0,1,1),compare="less")

