Skip to content
Prev 334372 / 398506 Next

filter a data.frame

Hello, Mat,

see below.
You should not expect a vector (of two elements), here no.ind, equal 
elementwise any of the elements of another (longer) vector, here out$No. 
You probably actually want to check for each element of out$No if it is 
contained in the set of elements in no.ind. So, use, e.g.,
See ?is.element.


  Hth  --  Gerrit