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

From: Charilaos Skiadas <cskiadas_at_gmail.com>
Date: Fri, 30 May 2008 21:05:03 -0400

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



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 02 Jun 2008 - 04:19:25 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 02 Jun 2008 - 04:30:39 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive