Let's say your data frame is called DF and you want to keep those rows that have the value A, B or C in the column called Group.
library(dplyr)
DF_filtered <- filter(DF, Group %in% c("A", "B", "C"))
If you cannot adapt that example to what you want to do, please explain in more detail what you need to accomplish.