I have the following data example
test <- tibble(V1 = c("a", "b", "d", "f"),
V2 = c("a", "s", "d", "g"),
V3 = c("s", "e", "r", "u"))
I try using filter_all() to exclude rows in which the variables that matches with some value, like that are present:
test %>% filter_all(all_vars(. != c("s", "u")))
But it not works. it give me the following output
# A tibble: 2 × 3
V1 V2 V3
<fct> <fct> <fct>
1 b s e
2 d d r
It's not exclude the row where the values are ("b", "s" and "e").
Thanks all