Skip to content
Prev 255920 / 398506 Next

syntax to subset for multiple values from a single variable

Hi,

I'm not sure what you're looking for because it looks to me that you 
have the answer already...
Is this what you want:
subset(df, x %in% c('a','b'))
?

Ivan

Le 4/6/2011 10:45, SNV Krishna a ?crit :