Filtering rows | Data untangled: transforming and cleaning data with R (lesson 2)

preview_player
Показать описание
👋 LESSON MATERIALS 🛑

Get the data, scripts, PDF notes and quizzes for this lesson from our website:

Chapters:
00:00 Intro
02:53 Introducing filter()
05:29 Relational operators
09:33 Combining conditions with & and |
13:44 Negating conditions with !
18:00 NA values
22:52 Wrap Up

Learning objectives
1. You can use dplyr::filter() to keep or drop rows from a dataframe.
2. You can filter rows by specifying conditions on numbers or strings using relational operators like greater than, less than, equal to (==), and not equal to (!=).
3. You can filter rows by combining conditions using logical operators like the ampersand (&) and the vertical bar (|).
4. You can filter rows by negating conditions using the exclamation mark (!) logical operator.

----------------

And follow us on social media to get the latest updates!
Рекомендации по теме
Комментарии
Автор

Very clear and simple way of presenting information ❤

charlesdanieldoka
Автор

How could one parse a part of a string inside a URL link? Tried a filter(grepl()) function and a select(contains()) function but failed to get a result back. Think it has something to do with it being a URL link instead of it being just a string

infamousprince