[R] "all rows must have the same length" error while using read.table - correction

Jason Turner jasont at indigoindustrial.co.nz
Mon Apr 2 06:55:26 CEST 2001


> 2) trailing tabs.  Again, from within vi, you can clean these
> up by 
> :1,$s,[\t ]*,,  
> which clears trailing spaces and tabs.

That should be
:1,$s,[\t ]*$,,

Note the second '$'.  The original form will seriously mess up your
data, guaranteed.

Indigo Industrial Controls Ltd.
jasont at indigoindustrial.co.nz
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list