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 -- View this message in context: http://r.789695.n4.nabble.com/subsetting-by-is-not-tp4666706.html Sent from the R help mailing list archive at Nabble.com.
I want to clarify we are talking about 2 variables in a datframe here. -- View this message in context: http://r.789695.n4.nabble.com/subsetting-by-is-not-tp4666706p4666707.html Sent from the R help mailing list archive at Nabble.com.
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