How to Filter Rows Which Contain Specific String in R / dplyr
12,159
Published 2020-07-16
If you enjoyed this video please leave a like! Subscribe for more of the best R content on YouTube!
All Comments (9)
-
This a money video. Thank you for not making it super long and complicated.
-
Great video. Thanks Rnerd!
-
Awesome! Many thanks from São Paulo.
-
nice, just saved me hours for my uni homework
-
Amazing!
-
Thanks
-
But how do you filter when you want a specific string ONLY. Like, what if I only want "apple" but not "apple 1", "apple 2", "apple 3", etc. If I did filter(grepl('apple', df)) I would get all the apples. But I only want the original.
-
I'm trying to filter for two specific variables Democrat and Republican. How would I go about that this works just fine for isolating one but I don't know how to make it filter for everything except two things.