[R] problem with not in in subseting dataframe
jim holtman
jholtman at gmail.com
Wed May 26 14:09:00 CEST 2010
try:
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
> *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 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.
>
--
Jim Holtman
Cincinnati, OH
+1 513 646 9390
What is the problem that you are trying to solve?
More information about the R-help
mailing list