R Basics: How to Use filter() to Select Rows Based on Column Values

preview_player
Показать описание

In this episode of R basics, we're talking about how to use the filter() function to pick rows (observations) from data based on a condition - for example, "Pick all the rows where the penguin is over 2 feet high." We'll look at the easiest way to do this, as well as the hard way.

🎉 *Enjoyed this video?* Leave a comment below to share what you liked the most!
Комментарии
Автор

😃 Comment below if you have questions about how to use filter()!

tomhenry-datasciencewithr
Автор

Thanks! Very explanatory and super simple to understand.

bukolaadebayo
Автор

How does the code change if the columns have text instead of numbers? I want to select the rows that contain data for specific forest areas, which are marked with text in the data frame.

lefterisparasyris
Автор

please how do i filter rows with character data types. For example, rows that have total in them from a dataset

ogclinton
Автор

Hey sir, i was wondering if you know how to remove only a specific percentage of row where we have a specific value. For exemple we have 10 rows with a value of 1 and we want to remove half of those row

henrytadja
Автор

Hi how do you filter if you want for exemple rows where depth is BETWEEN 100-150?

AgneKif
Автор

Thanks for your help. How would you filter with percentages? Like say if I want the top and bottom 1% of people and discard that data how would I be able to do that? Thank you very much

JC-wtfw
Автор

My output keeps saying "object __ not found"; Error in "select ()" I don't understand, I rewrote everything

crazyneon
Автор

Thanks for this video Tom. Do you know how to filter the data with multiple conditions. So if X=1 then filter y>2000 AND if X=2 then filter Y>3000 AND if X=3 then filter Y>4000. Thanks for your help.

cheriseregier