Programming in the Tidyverse
summary
Explains how tidyverse packages like dplyr and ggplot2 use data masking and why that breaks simple reuse: a loop passing column names yields a mean of a string (NA), while mapping with purrr or dplyr scoped verbs (mutate_all / across variants) cleanly replaces loops and scales columns. Describes three reuse techniques: forwarding ... to group_by/AES, subsetting with the .data pronoun, and tidy-eval interpolation using bang-bang / quo (and the upcoming double-curly) to quote/unquote blueprints so pipelines can be wrapped into reusable functions.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 1:00From analysis to production
- 8:30Why tidy evaluation
- 14:20Do you need tidy eval
- 21:55Easier tidy eval methods
- 31:00Advanced interpolation
- 36:30Takeaways and Q&A
related talks
18mInteractivity and Programming in the Tidyverse
29mGrammars of Data: lessons from ~20 years of the tidyverse
46mElegant R: Tips from a Software Developer
22mModelling, Tidyverse Way
18mtidymodels: Adventures in Rewriting a Modeling Pipeline
21mLearning and using the tidyverse for historical research
05mImplications of R Syntax in Intro Stats
05mWhy tidy data matters
