[Brian Ripley] >[François Pinard] >>[Brian Ripley] >>>One problem [...] is that R's I/O is not line-oriented but >>>stream-oriented. So selecting lines is not particularly easy in R.
>>I understand that you mean random access to lines, instead of random >>selection of lines. >That was not my point. [...] Skipping lines you do not need will take >longer than you might guess (based on some limited experience). Thanks for telling (and also for the expression "reservoir sampling"). OK, then. All summarized, if I ever need this for bigger datasets, selection might better be done outside of R. -- François Pinard http://pinard.progiciels-bpi.ca ______________________________________________ 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