I am using the map function of the purrr package in R which gives as output a list. Now I would like the output to be a named list based on the input. An example is given be
The recommended solution:
c("a", "b", "c") %>% purrr::set_names() %>% purrr::map(~paste0('test-', .))