View source: R/tax_prepend_ranks.R
tax_prepend_ranks | R Documentation |
Prepend the start of rank names to each taxon at each rank (useful particularly in case of duplicated taxa names across ranks, e.g. dietswap dataset)
tax_prepend_ranks(ps, sep = ": ", nchar = 1)
ps |
phyloseq object |
sep |
characters to paste in between rank initial and taxon name |
nchar |
number of characters to use from start of rank_names |
phyloseq
tax_fix
for fixing other tax_table problems
data("dietswap", package = "microbiome")
phyloseq::tax_table(dietswap) %>% head()
dietswap %>%
tax_prepend_ranks() %>%
phyloseq::tax_table() %>%
head()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.