[R] how to have 'match' ignore no-matches
dwinsemius at comcast.net
Mon Oct 5 22:32:51 CEST 2009
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
> with me.
> I'm using match to translate elements of a data frame using a lookup
> 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
West Hartford, CT
More information about the R-help