purrr |
data wrangling |
purrr makes it easy to apply a function to each item in a list and return results in the format of your choice. It’s more complex to learn than the older plyr package, but also more robust. And, its functions are more standardized than base R’s apply family — plus it’s got functions for tasks like error-checking. CRAN. |
map_df(mylist, myfunction) More: Charlotte Wickham’s purr tutorial video, the purrr cheat sheet PDF download. |
Hadley Wickham |