Skip to content

syntax to subset for multiple values from a single variable

2 messages · Krishna Kumar, Ivan Calandra

#
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 :