[R] how to have 'match' ignore no-matches

Jill Hollenbach jhollenbach at chori.org
Mon Oct 5 22:01:26 CEST 2009


Hi all,
I think this is a very basic question, but I'm new to this so please bear
with me.

I'm using match to translate elements of a data frame using a lookup table.
If the content of a particular cell is not found in the lookup table, the
function returns NA. I'm wondering how I can just ignore those cells, and
return the original contents if no match is found in the lookup table.

Many thanks in advance, this site has been extremely helpful for me so far,
Jill

Jill Hollenbach, PhD, MPH
    Assistant Staff Scientist
    Center for Genetics
    Children's Hospital Oakland Research Institute
    jhollenbach at chori.org
-- 
View this message in context: http://www.nabble.com/how-to-have-%27match%27-ignore-no-matches-tp25756601p25756601.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list