An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20120907/7620e120/attachment.pl>
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:
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 . Thanks for your help, I am new in R ... Fred [[alternative HTML version deleted]]
______________________________________________ R-help at 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.
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