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 :
Hi All,
Is it possible to use the subset() function to select data based on multiple
value
Hi All,
Is it possible to use the subset() function to select data based on multiple
values of a single variable from a data frame.
My actual data set is much bigger and would like to illustrate with
following dataset
> df = data.frame(x = c('a','b','c','d','e','f','g','h','a','a','b','b'), y
=
2 matches
Mail list logo