Mutating columns
module 3
week 4
across
case_when
columns
conditional statements
ifelse
mutate
rowwise
Change and create data in columns
We’ll continue our data wrangling by cleaning up the columns of our data. We’ll use the {dplyr} mutate()
functions to change and create column data.
Learning objectives
- Change existing column values
- Create new columns
- Move new columns when creating them
- Apply functions across columns
Pre-meeting
To prepare for this class meeting, please do the following:
- Read R4DS2 4.3.1
Class meeting
Homework after the class meeting
Wrap up this lesson
- Complete the exercises
For next class meeting
- Read R4DS2 5