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

About this list Date view Thread view Subject view Author view

From: Jason Turner (jasont@indigoindustrial.co.nz)
Date: Mon 02 Apr 2001 - 14:55:26 EST


Message-ID: <20010402165526.C3012@camille.indigoindustrial.co.nz>

whoops

> 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.

Jason

-- 
Indigo Industrial Controls Ltd.
64-21-343-545
jasont@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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2b30 : Fri 22 Jun 2001 - 18:58:38 EST