rstudio / bookdown

Authoring Books and Technical Documents with R Markdown
https://pkgs.rstudio.com/bookdown/
GNU General Public License v3.0
3.76k stars 1.27k forks source link

Repetitive 'row. names' after merge_taxa("Genus") #1475

Closed gg-miro closed 3 weeks ago

gg-miro commented 3 weeks ago

i want add arrow in pcoa, but when running code: rownames(tmp$otu_table) <- tmp$tax_table[rownames(tmp$otu_table), "Genus"]

Error in .rowNamesDF<-(x, value = value) : no allow Repetitive 'row.names'

此外: Warning message: non-unique values when setting 'row.names': ‘gBacillus’, ‘gClostridium’ then i check the value use: any(duplicated(tmp$tax_table$Genus))

TURE

There are indeed duplicate values, why haven't the horizontal taxes been fully merged.

cderv commented 3 weeks ago

Hi!

This does not seem like a bookdown issue, for which this issue tracker is about.

Please ask on Stackoverflow: https://stackoverflow.com/questions/tagged/r or on https://forum.posit.co

THanks !