A list of the same size as ..., containing the lookup results. For the type-specific functions,
returns a vector typed as requested, requiring all lookup results to have matching type.
Arguments
dict
A dictionaryish vector (named: key -> value)
...
Keys to lookup in the dictionary
default
Default value to return if key is not found. Can be a value or function (called with the key).
Note: default is to return NA; another very intuitive case is to return the key itself.
To achieve this, pass default = identity.
dict_key_is_regex
Should the dictionary keys, the names of dict,
be regarded as regular expressions? (excludes key_is_regex)
key_is_regex
Should the keys to lookup be regarded as regular expressions? (excludes dict_key_is_regex)