vecInMat              package:apComplex              R Documentation

_V_e_c_t_o_r _i_n _M_a_t_r_i_x

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

     This functions checks if a vector is identical to or strictly less
     than at least one column in a matrix.

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

     vecInMat(x, mat, compare = "equal")

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

       x: A vector.

     mat: A matrix with number of rows equal to the length of 'x'.

 compare: A character equal to "equal" (default) or "less".

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

     If 'compare' is set to "equal", the function checks to see if 'x'
     is identically equal to at least one column in 'mat'.

     If 'compare' is set to "less", the function checks to see if all
     elements of 'x' are less than all elements of at least one column
     in 'mat'.

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

     A logical value, indicating if 'x' is equal to (or strictly less
     than) at least one column in 'mat'.

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

     Denise Scholtens

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

     'reduceMat','reduceMatNew','whichVecInMat'

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

     a <- matrix(c(1,0,1,1,1,0),nrow=3)
     x1 <- c(1,0,1)
     x2 <- c(1,1,1)
     x3 <- c(1,0,0)

     vecInMat(x1,a)
     vecInMat(x2,a)
     vecInMat(x3,a,compare="less")

