[R] compare vector with selected element from a matrix

2013-05-10 Thread Ran Gu
Dear all, I want to compare a huge vector with selected element from a matrix. A is a matrix and B is a vector. I want to compare each element of B with selected element from A. C and D are selection criteria. They are vectors of same length as B. C specifies the row number of A, and D specifies

Re: [R] compare vector with selected element from a matrix

2013-05-10 Thread William Dunlap
Sent: Friday, May 10, 2013 12:39 AM To: r-help@r-project.org Subject: [R] compare vector with selected element from a matrix Dear all, I want to compare a huge vector with selected element from a matrix. A is a matrix and B is a vector. I want to compare each element of B with selected