Week 5: dplyr: rowwise, across, and case_when
Lectures
Labs
- Lab 5: dplyr, Part 2(PDF)
- Lab 5 solutions (password)
Practice
Additional readings
- dplyr: rowwise()
- dplyr: Column-wise operations with across()
- dplyr: case_when()
- Tidyverse Style Guide: Functions
Discussion
- When is
case_when()clearer than nestedif_else()? - When would
rowwise()be the wrong tool, and what would you use instead?