Hi Simon,
You almost had it! Just need to move the negation outside the rest of
the logic, and remove the quotes from year. Not actually tested (no
data), but I think
newdata<- subset(bpa, !(State=="Connecticut" & year<2010))
should do it.
Best,
Ista
On Tue, Jan 25, 2011 at 1:34 PM, Simon Kiss
Dear colleagues, I have a dataset that looks as below.
I would like to make a new dataset that excludes the cases which are joint
conjunctions of particular state names and years, so Connecticut and 2010,
Maryland and 2010 and Vermont and 2010.
I'm trying the following subset code:
newdata<- s
2 matches
Mail list logo