[R] Data import error: duplicate "row.names"
loic.joffre at gmail.com
Fri Dec 7 17:47:04 CET 2007
I had the same problem one time. It was because I did a copy paste under
excel that is to say i put some data from an other file at the following of
the file, and R thought it was duplicate row.names. So i did two exports on
R and after i did a rbind... I don't know if you did a copy paste like i did
but the problem can be that. I did not find an other solution and i think
other easier way are possible.
Fan Yang-4 wrote:
> I am trying to import a tab delimited file (converted from .xls file) by
> >Test<-read.table("/Users/....txt", header=T, row.names=1)
> The command has always worked for me, but now I have been getting the
> error message saying that "duplicate 'row.names' are not allowed. I
> have checked my original files and all names were unique. I have
> also tried to change the sample names (as 1, 2, 3,..., 13), it was
> still returning the same error message "duplicate 'row.names' are not
> allowed" to me. I have tried using "row.names=NULL", but it returned
> the column names as well.
> Does anyone know what the problem was? Thanks
> Fan Yang
> Industrial Microbiology
> 2209 Biomedical Phys Sci
> Michigan State University
> Phone: (517)355-6463 Ext 1588
> Email: yangfan1 at msu.edu
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
View this message in context: http://www.nabble.com/Data-import-error%3A-duplicate-%22row.names%22-tf4963044.html#a14215832
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help