vlookup
Examples
df <- data.frame(
a = letters[c(1, 1:9)],
b = 51:60
)
vlookup(c("a", "e", "c"), df, key = "a", value = "b")
#> Warning: Found more than 1 match. Returning the first.
#> a e c
#> 51 56 54
vlookup(c("a", "e", "c"), df, key = "a", value = "b", add = TRUE)
#> Warning: Found more than 1 match. Returning the first.
#> a b
#> a a 51
#> e e 56
#> c c 54