Skip to content
Back to formatted view

Raw Message

Message-ID: <20030507162641.GA4437@porcupine.gsf.de>
Date: 2003-05-07T16:26:41Z
From: Philipp Pagel
Subject: element of
In-Reply-To: <3EB92D5B.3030905@tuebingen.mpg.de>

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 
> TRUE/FALSE.

is.element(foo, mymatrix) 

which is the same as 

foo %in% mymatrix


cu
	Philipp
	
-- 
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
Germany