Hi,
I want to remove few rows that contain different words. For example, variable Country has several countries in it and I want to exclude the rows with Mexico and Cambodia. I was trying to do something like this:
df <- df %>%
filter(str_detect(Country, "Mexico", "Cambodia", negate = TRUE))
How can I remove rows with specific words in it?
Thanks!