[R] problem with not in in subseting dataframe
jholtman at gmail.com
Wed May 26 14:09:00 CEST 2010
stemp<-subset(temp, !(obj1 %in% obj2),select=c(temp))
On Wed, May 26, 2010 at 7:57 AM, venkata kirankumar
<kiran4u2all at gmail.com> wrote:
> Hi all,
> I have a problem while subsetting a dataframe that is
> while I am using *%in%* condition like
> *stemp<-subset(temp, obj1 %in% obj2,select=c(temp))*
> this is working and giving results that what ever is there is both *obj1*and
> but I want to get values which is there in *obj1* but not in *obj2 *
> can anyone help me how to get those values.
> i tried with *%o%* but i am not able to get it
> thanks in advance
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
+1 513 646 9390
What is the problem that you are trying to solve?
More information about the R-help