On Oct 5, 2009, at 4:01 PM, Jill Hollenbach wrote:
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.
Can you construct a simple example (with sufficient complexity and
lack of matches) that can be cut-and-pasted into the console along
with specification of how you want your results?
I cannot understand what you are asking for a "translat[ion] of a
dataframe" and when you request the "return [of] the original contents
if no match is found in the lookup table."
--
David Winsemius, MD
Heritage Laboratories
West Hartford, CT
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.