[R] Finding missing elements by comparing vectors

2009-07-16 Thread Praveen Surendran
Hi, Is there a function in R to do a-b where a and b are two non-numeric sets (or intersection complement of these two sets). Kind Regards, Praveen. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] Finding missing elements by comparing vectors

2009-07-16 Thread Steve Lianoglou
Is there a function in R to do a-b where a and b are two non-numeric sets (or intersection complement of these two sets). I think you're looking for setdiff -steve -- Steve Lianoglou Graduate Student: Physiology, Biophysics and Systems Biology Weill Medical College of Cornell University

Re: [R] Finding missing elements by comparing vectors

2009-07-16 Thread David Huffer
: Thursday, July 16, 2009 11:42 AM To: r-help@r-project.org Subject: [R] Finding missing elements by comparing vectors Hi, Is there a function in R to do a-b where a and b are two non-numeric sets (or intersection complement of these two sets). Kind Regards, Praveen

Re: [R] Finding missing elements by comparing vectors

2009-07-16 Thread Jorge Ivan Velez
] , Y [Y %in% X] ) ) [1] red blue green David -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Praveen Surendran Sent: Thursday, July 16, 2009 11:42 AM To: r-help@r-project.org Subject: [R] Finding missing elements