View source: R/taxonomy-based.R
summarize_taxonomy | R Documentation |
Given input as generated from load_taxa_table
,
calculate relative abundances (or absolute abundances) of taxa at a coarser
taxonomic threshold. Taxonomy must have been loaded for this function to
work.
summarize_taxonomy(input, level, relative = TRUE, report_higher_tax = TRUE)
input |
The input dataset. |
level |
The taxonomy level to summarize by [integer]. |
relative |
Return relative abundances or not (default = TRUE). |
report_higher_tax |
Whether or not to return taxonomic strings higher than the indecated level (default = TRUE). |
# Return relative abundances of phyla for each sample summarize_taxonomy(fruits_veggies, level = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.