This function automatically sets the names in the list or atomic vector from the input data without having to make 2 separate function calls to purrr::map and purrr::set_names.
1 | map_names_set(x, .f, ...)
|
x |
input |
.f |
function in purrr::map |
... |
additional parameters for the purrr::map function |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.