On Fri, Sep 7, 2012 at 11:04 AM, STADLER Frederic
<frederic.stad...@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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to