Description Usage Arguments Details Value Author(s) Examples
This is a function factory for creating a function that maps old values to new ones.
1 |
old |
Vector. The old values. |
new |
Vector. The new values. |
na_when_missing |
Logical. If a value cannot be found, should |
fun |
A function applied to the result before returning. |
... |
Further arguments for |
The factory internally uses a hashmap
for mapping old to new
values. For the possible data types of old
and new
, consult the
documentation of hashmap
(Here, keys
corresponds to old
and values
to new
).
A vector with re-mapped values.
Domink Mueller (dominikmueller64@yahoo.de)
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.