[R] Limit when reading in file?

Noah Silverman noahsilverman at ucla.edu
Tue Aug 16 19:25:32 CEST 2011


Hello,

I'm trying to read in a fairly large file into R, and am getting an odd error (65000 rows, 37 columns)

Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,  : 
  line 25628 did not have 37 elements


That line DOES have 37 elements.  As A test, I tried deleting it, and a few surrounding lines.  Same error occurs with a different line number.  

Is there some hard limit as to how large a file I can import?  If so, any suggested work around?

Thanks!

--
Noah Silverman
UCLA Department of Statistics
8117 Math Sciences Building
Los Angeles, CA 90095



More information about the R-help mailing list