[R] Optimized File Reading with R

From: Lorenzo Isella <lorenzo.isella_at_gmail.com>
Date: Tue, 15 May 2007 18:39:57 +0200


Dear All,
Hope I am not bumping into a FAQ, but so far my online search has been fruitless I need to read some data file using R. I am using the (I think) standard command:

data_150<-read.table("y_complete06000", header=FALSE)

where y_complete06000 is a 6000 by 40 table of numbers. I am puzzled at the fact that R is taking several minutes to read this file. First I thought it may have been due to its shape, but even re-expressing and saving the matrix as a 1D array does not help. It is not a small file, but not even huge (it amounts to about 5Mb of text file).
Is there anything I can do to speed up the file reading? Many thanks

Lorenzo



R-help_at_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 and provide commented, minimal, self-contained, reproducible code. Received on Tue 15 May 2007 - 16:44:26 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 15 May 2007 - 18:31:37 GMT.

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