[R] subsetting by is not

Sarah Goslee sarah.goslee at gmail.com
Thu May 9 22:21:14 CEST 2013


Without a reproducible example it's hard to say for certain, but I
imagine you want
buybdge != badge
or
!(buybdge == badge)

Note that ?"==" (the help for == ) would have told you that.

Sarah

On Thu, May 9, 2013 at 4:05 PM, ramoss <ramine.mossadegh at finra.org> wrote:
> Hello,
>
> I have a simple question:
>
> I know how to subset by is:  buy1 <- subset(buy,buybdge==badge)
>
> How do I subset if I don't want buybdge to equal badge?
>
> Thanks ahead for your help
>
>
>


-- 
Sarah Goslee
http://www.functionaldiversity.org



More information about the R-help mailing list