Given a table like:
id value 1 1 a 2 2 a 3 2 b 4 2 c 5 3 c
I would like to filter for:
a) the ids that o
Try
a)
df %>% group_by(id) %>% filter(all(value == "a"))
b)
df %>% group_by(id) %>% filter(all(c("a", "b") %in% value))