... the row.names will not interfere with any merging operation ... Row names do not interfere with merge, but they cause other problems. In the example, I want to test whether rows have the same entries (in some or all columns). identical fails because of the row names, and all( == ) can fail if there are NAs. There are ways around this, but it would be cleaner to be able to remove row names.
df <- data.frame(x=c(1,1,NA,NA), y=c(2,2,7,7)) identical(df[1,],df[2,])
[1] FALSE
all(df[1,]==df[2,])
[1] TRUE
all(df[3,]==df[4,])
[1] NA -- View this message in context: http://r.789695.n4.nabble.com/Remove-row-names-column-in-dataframe-tp856647p4660743.html Sent from the R help mailing list archive at Nabble.com.