[R] reading partial file content

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Oct 8 09:56:52 CEST 2004


Please do not tack your question on to a different one (as the posting 
guide does ask you not to).

On Fri, 8 Oct 2004, Marc Mamin wrote:

> hi,
> 
> 
> I'd like to extract data from very large files (ca 1-2 Mio lines),
> and I already know which lines of these files I need.
> 
> Is there a way to do it without filling the memory with the whole file
> content?

Yes, several, and it has been discussed on this list on Wednesday, in a 
thread entitled

`Performing Analysis on Subset of External data'

Please look in the archives.

> The lines I need are randomly distributed within the files.

[irrelevant other message discarded here.]

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list