[R] Row limit for read.table
fmccown at cs.odu.edu
Wed Jan 17 18:22:40 CET 2007
> In your case, read.table behaves as documented.
> The ' - character is one of the standard quoting characters. Some (but
> very few) of the entrys contain single ' chars, so sometimes more than
> ten thousand lines are just treated as a single entry. Try using
> quote="" to disable quoting, as documented on the help page:
> header=TRUE, nrows=123000, comment.char="", sep="\t",quote="")
>  122271
So either adding quote="" works or removing sep="\t" (and not using
quote) works. It seems an odd side-effect that specifying the separator
changes the default behavior of quoting (because of the ' character). I
don't see that association made in the help file.
> There is (colClasses, works as documented). Try
> + header=TRUE, nrows=123000, comment.char="",
> > dim(f)
>  122271 1
> Did you read the help page?
Of course I did. For me the definition of colClasses wasn't clear...
"A vector of classes to be assumed for the columns" didn't seem to be
the same thing as "the columns you would like to be read." I may have
made the association if the help page had contained a simple example of
Thanks for the help,
Old Dominion University
More information about the R-help