Piping
module 3
week 4
mutate
pipes
select
Pipes let us combine chains of functions
Often we have many steps of data processing to wrangle it appropriately. Rather than having to save every intermediate step, we can use pipes to create chains of steps.
Learning objectives
- Learn when to use pipes
- Compare base R and tidyverse pipes
- Apply pipes to optimize coding
Pre-meeting
To prepare for this class meeting, please do the following:
- Read R4DS2 5
Class meeting
Homework after the class meeting
Wrap up this lesson
- Complete the exercises
For next class meeting
- Read R4DS2 4.2