Skip to content

Problem with duplicates in row.names

3 messages · Fred, Jeff Newmiller, James

#
You cannot have duplicate row names. You have to do something to address that, such as remove duplicates or aggregate your data.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.
STADLER Frederic <frederic.stadler at unifr.ch> wrote:

            
#
On Fri, Sep 7, 2012 at 11:04 AM, STADLER Frederic
<frederic.stadler at unifr.ch> wrote:
You might consider using make.unique():

row.names (a) <- make.unique(a$Name)

HTH

James