[R] element of

Philipp Pagel p.pagel at gsf.de
Wed May 7 18:26:41 CEST 2003

On Wed, May 07, 2003 at 05:59:23PM +0200, alexander.schnee at tuebingen.mpg.de wrote:

> is there any funktion in R which i can use to check if a single value is 
> element of a matrix or data.frame so that it returns me logical values like 

is.element(foo, mymatrix) 

which is the same as 

foo %in% mymatrix

Dr. Philipp Pagel                                Tel.  +49-89-3187-3675
Institute for Bioinformatics / MIPS              Fax.  +49-89-3187-3585
GSF - National Research Center for Environment and Health
Ingolstaedter Landstrasse 1
85764 Neuherberg

More information about the R-help mailing list