[R] logical operations with lists
Jonathan
jonsleepy at gmail.com
Fri Feb 12 23:21:04 CET 2010
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]
<zoppolig at 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: zoppolig at mail.nih.gov
> ______________________________________________
> R-help at 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.
>
More information about the R-help
mailing list