Say that I have a dataframe with columns 'a', 'b', 'c'. Is it possible to filter the dataframe with a variable number of criteria?
Instead of:
df[df$a == "chicken" | df$a == "cow" | df$a == "dog" | ...,]
Is there something like:
df[df$a == c("chicken", "cow", "dog"),]
Thanks!