[R] Re: row.names in read.table()
Thomas Lumley
tlumley at u.washington.edu
Mon Feb 4 02:12:08 CET 2002
On Mon, 4 Feb 2002, Ko-Kang Kevin Wang wrote:
> 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!)
As help(read.table) says
If `row.names' is not specified and the header line has one less
entry than the number of columns, the first column is taken to be
the row names.
This lets you have the row names as the first column of the data.
-thomas
Thomas Lumley Asst. Professor, Biostatistics
tlumley at u.washington.edu University of Washington, Seattle
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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