sorry, misread your post try this...
> c<-setdiff(a,b) > c [[1]] [1] "a" [[2]] [1] "b" for a list C that contains all the members in the list B that are not in list A --- On Fri, 12/2/10, Zoppoli, Gabriele (NIH/NCI) [G] <zoppo...@mail.nih.gov> wrote: > From: Zoppoli, Gabriele (NIH/NCI) [G] <zoppo...@mail.nih.gov> > Subject: [R] logical operations with lists > To: "r-help@r-project.org" <r-help@r-project.org> > Date: Friday, 12 February, 2010, 22:06 > 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.