row.names in read.table()
Whoops. Problem solved. I have one extra columns of data at the end (though I don't know why the error message did not say that, but said about row.names!). Thanks,
On Mon, 4 Feb 2002, Ko-Kang Kevin Wang wrote:
Date: Mon, 4 Feb 2002 13:25:47 +1300 (NZDT)
From: Ko-Kang Kevin Wang <kwan022 at stat1.stat.auckland.ac.nz>
To: R Help <r-help at stat.math.ethz.ch>
Subject: row.names in read.table()
Hi,
I was trying to read in the following data set by using:
gas <- read.table("gas.tab", header = T)
when I got the error message:
Error in "row.names<-.data.frame"(*tmp*, value = row.names) :
duplicate row.names are not allowed
Any help are appreciated.
Thanks,
Ko-Kang Wang
------------------------------------------------------------------------------
Ko-Kang Kevin Wang
Postgraduate PGDipSci Student (Summer Research Assistant)
Department of Statistics
University of Auckland
New Zealand
------------------------------------------------------------------------------ Ko-Kang Kevin Wang Postgraduate PGDipSci Student (Summer Research Assistant) Department of Statistics University of Auckland New Zealand -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._