Skip to content
Back to formatted view

Raw Message

Message-ID: <CA+nJqYNkxAWGC5cKXOXcjJBwWL6cYFZvFbM_0XZBmPfEBuznyA@mail.gmail.com>
Date: 2012-09-08T01:44:01Z
From: James
Subject: Problem with duplicates in row.names
In-Reply-To: <CC6FE7B2.338E%frederic.stadler@unifr.ch>

On Fri, Sep 7, 2012 at 11:04 AM, STADLER Frederic
<frederic.stadler at unifr.ch> wrote:
> Hello,
> I am drawing a heatmap with hundreds of genes. Everything work fine, except when I want to had the name of the genes as the row.names with
>>row.names (a)<-a$Name
> And there's this things that duplicate are not allowed...
>
> How can I do to allow duplicates  ??? I don't have the choice I can't just have numbers .


You might consider using make.unique():

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

HTH

James