I have a dataset that looks like this, except it\'s much longer and with many more values:
dataset <- data.frame(grps = c(\"a\",\"b\",\"c\",\"a\",\"d\",\"b\"
Try:
dataset[!(dataset$grps %in% remove),]