Map_df(mylist, myfunction) More: Charlotte Wickham's purr tutorial video, the purrr cheat sheet PDF download, easy error checking with purrr's possibly.įast way to read Excel files in R, without dependencies such as Java. And, its functions are more standardized than base R's apply family - plus it's got functions for tasks like error-checking. It's more complex to learn than the older plyr package, but also more robust. Purrr makes it easy to apply a function to each item in a list and return results in the format of your choice. Especially useful for operating on data by categories. The essential data-munging R package when working with data frames.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |