I need to exclude any instance of six values from a dataset that I have and wonder if there is an "all-in-one" solution to achieve this.
Aside from the usual
df[df$val != "one" || df$val != "two", ]
approach, is there an easier way to achieve this when there are a larger number of criteria?
I have tried
combi %>%
filter(siteLocation != c("", "VC2", "LB", "GHNA", "GH", "GA"))
and
combi %>%
filter(siteLocation != "" | "VC2" | "LB" | "GHNA" | "GH" | "GA")
but neither work (you get the idea).
Is this possible and if so, how?