Or just read.table(..., header=FALSE, skip=1)
Andy
> From: F Duan
>
> How about you delete the first row (column names) and then use
> "header=FALSE" in read.table()?
>
> Frank
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Herman, David
> (N
How about you delete the first row (column names) and then use
"header=FALSE" in read.table()?
Frank
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Herman, David
(NIH/NIMH)
Sent: Wednesday, July 14, 2004 11:13
To: '[EMAIL PROTECTED]'
Subject: [R] duplica
Dear David,
If there is one fewer variable name in the first row of the data file than
fields in the remaining rows, then read.table() will treat the first entry
in each row as the row name. Simply add a new first variable (such as
"name") to the first row, and specify header=TRUE in the call to
r
Try read.table(choose.files(), row.names=NULL).
BTW, I think you might be using an older R version because in R-1.9.1,
the value for row.names is missing by default in read.table().
> args(read.table)
function (file, header = FALSE, sep = "", quote = "\"'", dec = ".",
row.names, col.names, as