Mutating columns

module 3
week 4
across
case_when
columns
conditional statements
ifelse
mutate
rowwise
Change and create data in columns
Author

Jeff Stevens

Published

February 15, 2023

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:

Class meeting

  • Changing columns
  • Conditional changes
  • Multiple changes
  • Creating columns
  • Moving columns when creating
  • Removing old columns
  • Applying functions to multiple columns
  • Changing multiple columns
  • Slides and Code

Homework after the class meeting

Wrap up this lesson

For next class meeting