This is probably not the best way, but (assuming you had vectors and not lists, since I'm not sure what your list looks like):
C <- B[which(B %in% A ==FALSE)] Regards, Jonathan On Fri, Feb 12, 2010 at 5:06 PM, Zoppoli, Gabriele (NIH/NCI) [G] <zoppo...@mail.nih.gov> wrote: > Sorry, maybe it's easy but I haven't found anything useful: > > how can I obtain a list C that contains all the members in the list B that > are not in list A? This are lists of nanes, not numbers! > > Thank you > > > Gabriele Zoppoli, MD > Ph.D. Fellow, Experimental and Clinical Oncology and Hematology, University > of Genova, Genova, Italy > Guest Researcher, LMP, NCI, NIH, Bethesda MD > > Work: 301-451-8575 > Mobile: 301-204-5642 > Email: zoppo...@mail.nih.gov > ______________________________________________ > R-help@r-project.org mailing list > 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. > ______________________________________________ R-help@r-project.org mailing list 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.