Working with names and expressions in your tidy eval code
summary
Shows how passing ... into dplyr lets a wrapper accept either column selections or column actions and demonstrates two concrete wrappers: a selection-based summary built on summarize_at that returns per-group summaries, and an action-based version using transmute/summarize_all that creates new vectors then summarizes them. Includes a real fix: when gathering results exclude grouping variables so grouped tables work. Works as described but requires careful choice between selection vs action semantics.
AI-written summary · about
chapters (11)
- 0:00Tidy eval in R
- 1:33Why quoting matters
- 2:39Selection vs action verbs
- 4:50Selection helpers
- 6:37Challenges in functions
- 7:19Simplest functions
- 8:23Selection with purrr
- 10:32Selection to action
- 11:58Grouped summaries
- 13:32Best practices
- 14:37Q&A
related talks
32mPipes or Brackets: Dplyr and Data.Table
16mEXCELsioR!
20mExtending a Reactive Expression Language with Data Update Actions for End-User Application Authoring
05m3 x packages with single-line calls to boost your productivity
48mRefactoring from Good to Great - A Live-Coding Odyssey
15mDemystifying the art of creating custom libraries for your organization
41m"Escape Your Framework"
12mFrom summarizing projects to setting tags, uses of parsing R files
