[R] A question about *read.table()*

Charilaos Skiadas cskiadas at gmail.com
Sat May 31 03:05:03 CEST 2008


On May 30, 2008, at 7:56 PM, ss wrote:

> and I got an error message:
>
>> exprSet <- read.table('process_all4_GSA2.txt', row.names = 1,header
> =FALSE)
> Error in read.table("process_all4_GSA2.txt", row.names = 1, header  
> = FALSE)
> :
>   duplicate 'row.names' are not allowed

I would say that's pretty explanatory. You've asked it to use the  
first column for row names, but apparently there are two rows with  
the same name, and we can't have that.
Perhaps you might want to try to load it without the row.names=1  
part, and then use:

duplicated(exprSet[,1])

to see which rows are the ones with the same name.

Haris Skiadas
Department of Mathematics and Computer Science
Hanover College



More information about the R-help mailing list