Week 3, Part 2: Extending dplyr verbs

1 Learning Objectives

  • apply functions to multiple columns using across()
  • recognize additional useful dplyr functions such as pull(), count(), distinct(), and case_when()

📖 Readings: 15-30 min


2 Lots of functions!

We covered the main dplyr functions in the first half of the week. It is worth continuing to review those readings if it was too much or confusing the first time!

We introduced a couple more in class this week, namely pull(), count(), distinct(), and case_when(). I would recommend that you look through both the dplyr cheatsheet and the dplyr documentation to see all of the options and see examples of how to use them.

3 across()

📖 Required Reading: R4DS Modifying Multiple Columns through 26.2.5