How to read this book
This book is divided in 5 chapters.
Each chapter contains a random number of receipes, more or less from the easiest to more complex examples.
- “Statistics” contains a list of useful common stat tricks with {purrr}
- “Webmining” gives you elements to mine info from the web (HTML / JSON)
- “Text Wrangling” covers some text mining methods
- “Code optimisation” is a chapter about using {purrr} to write better code
- “Data Wrangling” is a list of receipes I couldn’t fit anywhere else ¯\(ツ)/¯
Based on other programming cookbook template, each receipe is divided as such:
- “I want to…”: what you want to do
- “Here’s how to”: how to do this
- “Ok, but why?”: more explanations about the solution
- “See also”: further references if you want to go deeper
Who is this cookbook for?
Anybody interested in learning more about {purrr}, either by reading this from cover to cover (well… figuratively speaking), of by picking what you find interesting.
Before reading
We expect the reader to be a little bit familiar with R, and with the core packages from the tidyverse.
Copy and paste the below code to be sure you have all the packages you need.
install.packages("tidyverse")
install.packages("broom")
install.packages("rvest")
install.packages("attempt")
install.packages("tidystringdist")
install.packages("tidytext")
Let’s launch the tidyverse to be sure we have everything we need:
You want another receipe
For another receipe, please ask on this issue.