On Sat, Jun 6, 2009 at 5:02 PM, Adam D. I. Kramer<a...@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/ ______________________________________________ R-help@r-project.org 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.