For each value in a vector group_vec
finds first match in list of vectors and returns name of the vector.
1 |
x |
a character vector |
l |
a (usually named) list of character vectors |
no.match |
value that should be returned if no match is found. Usually NA or "other". If NULL (default) the original value itself is returned. |
USE.NAMES |
logical passed to sapply indicating whether a result should be a named vector (for character input vectors only). |
fixed |
logical; allows match based on regular expressions |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.