Advanced Filtering in R (Or/And Conditions, Strings, Missing Values)

Опубликовано: 24 Март 2026
на канале: Felix Analytix
3,325
91

Get the code here: https://felixanalytix.com

Newsletter: https://felixanalytix.substack.com
Twitter:   / felixanalytix  

00:00 Filter data in RStudio
00:45 Install and Attach R packages
01:42 Filter rows with dplyr - 5 simple examples
05:29 Filter data using Multiple Columns
06:57 Filter character and words using stringr
08:30 Remove missing values
09:13 Advanced filtering using aggregators
09:44 Final remarks

In this video I show you how to use the filter function from the dplyr R package in RStudio. We will see different ways of keeping or removing specific rows of a dataset using 5 simple examples. Then I will show you more advanced filtering methods, such as filtering data using logical conditions on multiple columns, how to remove missing values of a dataset or how to use specific words or strings to filter rows of character variables using the stringr R package.