lookup_function_from_dict | R Documentation |
Creating a lookup function from dictionary
lookup_function_from_dict(dict, default = identity, dict_key_is_regex = F)
dict |
A dictionaryish character vector (named: key -> value) |
default |
Value to return if key is not found, or function to evaluate with key as argument |
dict_key_is_regex |
If True, treats dictionary keys are regular expressions when matching |
A function which can be called with keys and performs the described lookup, returning the value (string)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.