[R] "all rows must have the same length" error while using read.table
hzi
hzi at uol.com.br
Sun Apr 1 10:43:32 CEST 2001
Hi-
I tried to read the table bellow (table goes on with 54 rows) with
the read.table
> AGE MONTH SEX HEADLEN HEADWTH NECK LENGTH CHEST
> WEIGHT
> 19 7 1 11.0 5.5
> 16.0 53.0 26.0 80
> 55 7 1 16.5 9.0
> 28.8 67.5 45.0 344
> 81 9 1 15.5 8.0
> 31.0 72.0 54.0 416
> 115 7 1 17.0 10.0
> 31.5 72.0 49.0 348
> 104 8 2 15.5 6.5
> 22.0 62.0 35.0 166
> set3 <- read.table("/dos/mydocu~1/conjun~1.txt", header=T,
sep="\t", row.names=1)
R (1.2.2 under Linux) produced the following error message:
Error in read.table("/dos/mydocu~1/conjun~1.txt", header=T, sep="\t", :
all rows must have the same length.
What "length" is the error message referring to? The names of the variables?
Thanks in advance.
Regards,
Henry
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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