[R] Subsetting matrix with values from vector

jorgusch hackl.schorsch at web.de
Tue Sep 15 11:28:58 CEST 2009


Hello,

I have a large matrix (data), in which there is a column offerid. The values
are numbers (lets say 1:5)
There is another vector (idnew), which contains some of the offerids and
many more (3:10).

I want a subset of the matrix wiith only those rows, which match the
criteria of the vector.

How can I make it work?

Thanks!
-- 
View this message in context: http://www.nabble.com/Subsetting-matrix-with-values-from-vector-tp25450905p25450905.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list