-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
project.org] On Behalf Of jeharmse
Sent: Friday, March 08, 2013 7:41 PM
To: r-help at r-project.org
Subject: Re: [R] Re move row.names column in dataframe
... 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,])