| map | R Documentation |
A small base-R-style mapping helper with no external dependency: apply .f
to each element of .x and return the results in a list, like
base::lapply() with a friendlier argument name.
map(.x, .f, ...)
.x |
A vector or list. |
.f |
A function or function name. |
... |
Additional arguments passed to |
map() returns a list.
map(1:3, function(x) x + 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.