encoder | R Documentation |
Match and Encode vector
encoder(x, match, encode = match, nomatch_na = TRUE)
x |
(vector) Input data to be matched. |
match |
(vector) Value to be matched against |
encode |
(vector) Encoding vector same length as |
nomatch_na |
(Logical) Control behavior of non-matching elements, one of:
|
Encoded vector
encoder(c("a","b","d"), c("a","b","c"), c("A","B","C"))
encoder(c("a","b","d"), c("a","b","c"), c("A","B","C"), nomatch_na = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.