Interactivity and Programming in the Tidyverse
summary
Explains concrete tidyverse tools to eliminate data masking surprises and make reusable functions: use .data and .env pronouns to disambiguate column vs workspace names, use {{ }} tunneling (curly-curly) to forward a data variable through a function argument so it evaluates inside the data, use double brackets to treat column names as strings and avoid masking, use all_of for strict selection, and use glue on the left of := to programmatically name results; examples and migration patterns are shown.
AI-written summary · about
chapters (7)
- 0:00Intro
- 0:23Data-masking in R
- 5:08Trouble in data-masking town
- 6:151. Unexpected masking
- 8:032. Data-variables through arguments
- 11:052. Hard to reuse code in functions
- 12:45What about selections?
related talks
51mProgramming in the Tidyverse
46mElegant R: Tips from a Software Developer
29mGrammars of Data: lessons from ~20 years of the tidyverse
27mShiny: A GUI for the Tidyverse
22mModelling, Tidyverse Way
05mImplications of R Syntax in Intro Stats
18mtidymodels: Adventures in Rewriting a Modeling Pipeline
32mPipes or Brackets: Dplyr and Data.Table
