Re: [R] subset with non logical rules

2013-06-07 Thread sisseck.net
aah perfect, exactly what i was looking for! Thank you On Fri, Jun 7, 2013 at 3:24 PM, arun kirshna [via R] wrote: > HI, > Try: > ?split() > > source("http://www.openintro.org/stat/data/cdc.R";) > str(cdc) > #'data.frame':2 obs. of 9 variables: > # $ genhlth : Factor w/ 5 levels "excel

Re: [R] subset with non logical rules

2013-06-07 Thread arun
HI, Try: ?split() source("http://www.openintro.org/stat/data/cdc.R";)  str(cdc) #'data.frame':    2 obs. of  9 variables: # $ genhlth : Factor w/ 5 levels "excellent","very good",..: 3 3 3 3 2 2 2 2 3 3 ... # $ exerany : num  0 0 1 1 0 1 1 0 0 1 ... # $ hlthplan: num  1 1 1 1 1 1 1 1 1 1 ...