library(dplyr) home.dests <- c("St Louis, MO", "New York, NY", "Hudson, NY") # Subsetting using %in% in R: dataf %>% filter(home.dest %in% home.dests) Code language: R (r)