lookupkey
lookupkey(key, input)
key | data.frame or matrix where the first column are the strings to be corrected and the second is the "corrected" definitions. |
---|---|
input | character vector |
key <- cbind(c("one", "two", "three", "four", "five"), c("one1", "two2", "three3", "over", "over")) input <- c("one", "one", "two", "three", "four", "five") lookupkey(key, input) #> [1] "one1" "one1" "two2" "three3" "over" "over"