I want to filter my data frame based on whether one column contains text that appears in a vector. The string in each cell of the column is quite long, and I only need the vector item to appear within the string.
I can do this for a single reference e.g.
library(dplyr)
starwars %>%
filter(grepl("at", name))
But what if I want to use a vector of references?
attributes = c("at", "oo", "un")