Dont put sep if you don't really need it! (was: [R] Problem reading in table with extra spaces
Paul E Johnson
pauljohn at ukans.edu
Sun Aug 6 07:08:53 CEST 2000
Uwe Ligges wrote:
I had problems reading in this data with this command
read.table("lastline.txt",header=T,sep=" ").
On RH linux 6.2 with R 1.1, this returns an error that all lines must
have the same number of values.
Since then, I saw Uwe Ligges reply, and he is correct. The error goes
away if you don't specify the separator:
read.table("lastline.txt",header=T)
> > T Run Seed IntAct Change f0 f0T0 f0T1 f0T2 average0 variance0
> > relentropy0 f1 f1T0 f1T1 f1T2 average1 variance1 relentropy1 f2 f2T0
> > f2T1 f2T2 average2 variance2 relentropy2 f3 f3T0 f3T1 f3T2 average3
> > variance3 relentropy3 f4 f4T0 f4T1 f4T2 average4 variance4 relentropy4
> > totalEntropy acquaint harmony identical
> > 960 0 807089772 43 0 f0 42 22 36 0.940000 0.770000 0.969635 f1 32 38
> > 30 0.980000 0.610000 0.995340 f2 24 38 38 1.140000 0.590000 0.981121 f3
> > 31 40 29 0.980000 0.590000 0.990856 f4 41 27 32 0.910000 0.710000
> > 0.986421 0.707571 0.435000 0.628316 0.413000
--
Paul E. Johnson email: pauljohn at ukans.edu
Dept. of Political Science http://lark.cc.ukans.edu/~pauljohn
University of Kansas Office: (785) 864-9086
Lawrence, Kansas 66045 FAX: (785) 864-5700
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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