[R] Error when naming rows of dataset

Michael Dewey info at aghmed.fsnet.co.uk
Wed Oct 25 12:38:29 CEST 2006


At 17:30 24/10/2006, yongchuan wrote:
>I get the following error when I try reading in a table.
>How are 1.1, 1.2, 1.3 duplicate row names? Thx.

R gives you brief details of where it was when it fell over.
Have you checked in latestWithNumber.txt' to see whether R is right?


> > table <- read.table('latestWithNumber.txt', header=T)
>Error in "row.names<-.data.frame"(`*tmp*`, value = c("1.1", "1.2", "1.3",  :
>         duplicate 'row.names' are not allowed
>
>Yongchuan

Michael Dewey
http://www.aghmed.fsnet.co.uk



More information about the R-help mailing list