vlookup | R Documentation |
vlookup
vlookup(this, data, key, value, add = FALSE)
this |
A vector of values |
data |
A data frame to search in |
key |
Where should |
value |
Name of the column from which values should be returned. |
add |
Should |
df <- data.frame(
a = letters[c(1, 1:9)],
b = 51:60
)
vlookup(c("a", "e", "c"), df, key = "a", value = "b")
vlookup(c("a", "e", "c"), df, key = "a", value = "b", add = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.