[R] Why aren't row names in a data frame unique?

Berend Hasselman bhh at xs4all.nl
Tue Mar 6 11:44:02 CET 2012


On 06-03-2012, at 11:23, Ajay Askoolum wrote:

> Jim, have a look here: http://www.r-bloggers.com/select-operations-on-r-data-frames/. Specifically at the Duplicate Row Names section towards the end of the page.
> 

Look carefully at that example.
It is NOT providing rownames for a dataframe.
It IS providing row names for a matrix.

A matrix is not equal to a dataframe.

Berend



More information about the R-help mailing list