[R] A very frustrating read.table error message
hadley wickham
h.wickham at gmail.com
Sun Jun 7 00:10:58 CEST 2009
On Sat, Jun 6, 2009 at 5:02 PM, Adam D. I. Kramer<adik at ilovebacon.org> wrote:
> Dear Colleagues,
>
> Occasionally I deal with computer-generated (i.e., websurvey) data
> files that haven't quite worked correctly. When I try to read the data into
> R, I get something like this:
>
> Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,
> :
> line 26 did not have 648 elements
>
> ...is there any way to get R to tell me how many elements line 26 *did*
> have? That information would take this error message from frustrating to
> useful. :)
?count.fields
Hadley
--
http://had.co.nz/
More information about the R-help
mailing list