Skip to content

Data import error: duplicate "row.names"

3 messages · Fan Yang, tintin_et_milou, Gabor Grothendieck

#
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.

Lo?c
Fan Yang-4 wrote:

  
    
#
Read your file in without row names and check for duplicates:

DF <- read.table(myfile, skip = 1, header = FALSE)
myfile[duplicated(DF[[1]]), ]  # list rows with duplicated column 1
On Dec 7, 2007 11:22 AM, Fan Yang <yangfan1 at msu.edu> wrote: