Re: [R] Subset function: selecting variables within a factor

2009-04-13 Thread Thomas Lumley
On Tue, 14 Apr 2009, Andrew McFadden wrote: Hi all I know this must be an easy one so sorry for the trouble. I would like to select a list of variables within a factor The following example is given in help for subset: subset(airquality, Temp > 80 select = c(Ozone, Temp)) So how do I select

[R] Subset function: selecting variables within a factor

2009-04-13 Thread Andrew McFadden
Hi all I know this must be an easy one so sorry for the trouble. I would like to select a list of variables within a factor The following example is given in help for subset: subset(airquality, Temp > 80 select = c(Ozone, Temp)) So how do I select all temperatures of 90 and 80 ie Temp = c(80,9