[R] Finding Equal Elements in Vectors

Sven C. Koehler schween at snafu.de
Sun Feb 27 18:16:04 CET 2005


On Sun, Feb 27, 2005 at 09:24:54AM -0600, Marc Schwartz wrote:
> > which(a %in% b)
> [1]  8  9 10
> 
> See ?"%in%" and ?which for more information.

Thanks for all your replies.  This was what I actually wanted to use!

-S.




More information about the R-help mailing list