I'd like to split the content of my data frame into two based on whether or not the data contain "ID" column values specified in a second list.
I have dplyr loaded and %in% below works well, but get but %!in% returned the following error:
D2a<-D1[D1$ID%in%modtab2$ID,]
> D2b<-D1[D1$ID%!in%modtab2$ID,]
> Error in lapply(x, `[`, i) : could not find function "%!in%"
Suggestions on a fix?