try: stemp<-subset(temp, !(obj1 %in% obj2),select=c(temp))
On Wed, May 26, 2010 at 7:57 AM, venkata kirankumar <kiran4u2...@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 > *obj2* > ** > ** > 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 > > kiran > > [[alternative HTML version deleted]] > > ______________________________________________ > 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. > -- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve? ______________________________________________ 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.