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))
Thanks @FJCC! Why didn't I think about including OR? Anyhow, it seems like str_detect doesn't work right for me for some reason. Here is my code and Error: