Re: [R] Data import error: duplicate "row.names"

2007-12-07 Thread Gabor Grothendieck
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 <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to import a tab delimited file

Re: [R] Data import error: duplicate "row.names"

2007-12-07 Thread tintin_et_milou
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

[R] Data import error: duplicate "row.names"

2007-12-07 Thread Fan Yang
Hi, 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 o