Am 22.10.18 um 17:01 schrieb Eric Berger:
v <- match(Mydata$DATA1, needles, nomatch=NA) > found <- Mydata[ !is.na <http://is.na>(v), ] > missing <- Mdata[ is.na <http://is.na>(v), ]
Thank you it is working, additionally as Bert suggested, it seems that Mydata[Mydata$DATA1 %in% needles,] is doing the same. Kind Regards Knut ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.