[R] reading a text file, one line at a time

Philipp Pagel p.pagel at wzw.tum.de
Mon Aug 16 09:47:22 CEST 2010


On Sun, Aug 15, 2010 at 10:58:51AM -0400, Data Analytics Corp. wrote:
> I have an upcoming project that will involve a large text file.  I want to
> 
>   1. read the file into R one line at a time
>   2. do some string manipulations on the line
>   3. write the line to another text file.

You already got some good advice about how to solve this in R. I would
just like to add that many people, including myself, prefer to do all
text file scrubbing and especially string manipulations in scripting
languages like Python or Perl followed by statistical analysis in R.

cu
	Philipp

-- 
Dr. Philipp Pagel
Lehrstuhl für Genomorientierte Bioinformatik
Technische Universität München
Wissenschaftszentrum Weihenstephan
Maximus-von-Imhof-Forum 3
85354 Freising, Germany
http://webclu.bio.wzw.tum.de/~pagel/



More information about the R-help mailing list