top of page

Lesson 3: Filtering  Data

This lecture dives into one of the most essential data manipulation tools in R: the filter() function. Building on the previous lesson’s use of select(__) and mutate(__), the instructor walks through how to isolate specific rows based on conditions, making large datasets more useful and easier to work with. Using an NBA stats file, viewers learn how to create a new, focused data frame that includes only players who meet certain benchmarks—like attempting a minimum number of three-pointers or averaging over 15 points per game. The lesson emphasizes practical use cases and encourages experimentation with different thresholds and variables to understand the full potential of filtering data for targeted analysis.

bottom of page