Description Usage Arguments Details Value Author(s)
Creates a mapping function from list
1 | make_fun_from_list(lst)
|
lst |
A list |
Turns a list of the form list(a=c(1,2), b=3)
into
a function that returns 'a' when given 1 or 2 as
argument, 'b' when given 3 and otherwise gives back its
argument unchanged.
This is a convenience function to make it possible to
specify onto mappings using lists. The map_*
functions use it internally, but you might find a a use
for it.
A function that inverts the mapping specified by
lst
Will Lowe
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.