[R] Making a sub data.frame

desper idesper at gmail.com
Mon Jul 27 22:40:59 CEST 2009


Dear all,

I have a data.frame like this 

ID         VAR1
11           blaaal
121         blalda
121          adada
234        baada
231         ddaaa
231         baada
...           ...

and I have another vector of ID, say, c(121,234,231)
How could I collect all the observations start with ID from c(121,234,231) ?


Thanks

All the Best,
Desper
-- 
View this message in context: http://www.nabble.com/Making-a-sub-data.frame-tp24687873p24687873.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list