Displaying 1 result from an estimated 1 matches for "aaaaaaaaf".
Did you mean:
aaaaaaaa
2008 Jun 23
3
One-to-one matching?
...d "a".
Function pmatch() comes close to what I need:
pmatch(matchSample,lookupTable)
[1] 1 NA 2 4
Yep! However, pmatch() incorporates partial matching, which I
definitely don't want:
lookupTable <- c("a","b","c","d","e","aaaaaaaaf")
matchSample <- c("a","a","b","d")
pmatch(matchSample,lookupTable)
[1] 1 6 2 4
## i.e. the second "a", matches "aaaaaaaaf" - I don't want this.
Of course, when identical items ARE duplicated in both sample and lookup
table,...