Filtering rows

module 3
week 5
arrange
conditional statements
filter
missing data
rows
Remove rows based on data values
Author

Jeff Stevens

Published

February 20, 2023

We’ll move from cleaning columns to working with rows. We’ll use the {dplyr} filter() functions to only keep rows that we want to keep.

Learning objectives

  • Filter rows based on data values
  • Refine understanding of conditional statements
  • Remove missing data
  • Arrange rows based on data values

Pre-meeting

To prepare for this class meeting, please do the following:

Class meeting

  • Filtering basics
  • Filtering with OR
  • Multiple filters
  • Negating conditional statements
  • Filtering NA
  • Arranging in ascending and descending order
  • Slides and Code

Homework after the class meeting

Wrap up this lesson

For next class meeting