[R] Is it possible to only read a subset by read.table ?

From: David Vonka <D.Vonka_at_UvT.nl>
Date: Wed 12 Jul 2006 - 22:37:16 EST


Hello,

is it possible to do something like

DATA <- read.table(file="blabla.dat",subset=(sex=="male")),

i.e. make R read only a subset of a csv file ? I think it would be useful in case of very big datasets, but I can't find such a feature.

Thanks for an answer,
David Vonka



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jul 12 22:44:03 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 13 Jul 2006 - 04:21:36 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.