[R] Re move row.names column in dataframe

jeharmse jorgen.harmse at civitaslearning.com
Mon Mar 11 17:27:59 CET 2013


> 1.            If your data frame is numeric, change it to matrix. 
It isn't necessarily numeric.

> 2.            Or make your own function 
I think that's the solution, but the function has to handle both NA and
non-numeric.

equal.NA <- function(x,y)
all(is.na(x)==is.na(y)) && all(is.na(x) | x==y)

I'm still worried that row names could bite me in some other way, and would
prefer to be able to discard them.




--
View this message in context: http://r.789695.n4.nabble.com/Remove-row-names-column-in-dataframe-tp856647p4660956.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list