Displaying 1 result from an estimated 1 matches for "matchsample".
2008 Jun 23
3
One-to-one matching?
...olks,
Can anyone suggest an efficient way to do "matching without
replacement", or "one-to-one matching"? pmatch() doesn't quite provide
what I need...
For example,
lookupTable <- c("a","b","c","d","e","f")
matchSample <- c("a","a","b","d")
##Normal match() behaviour:
match(matchSample,lookupTable)
[1] 1 1 2 4
My problem here is that both "a"s in matchSample are matched to the same
"a" in the lookup table. I need the elements of the lookup table to...