taxa_sums: Get summary taxa abundances.

taxa_sumsR Documentation

Get summary taxa abundances.

Description

Get summary taxa abundances.

Usage

taxa_sums(biom, rank = 0)

taxa_means(biom, rank = 0)

Arguments

biom

An rbiom object, such as from as_rbiom(). Any value accepted by as_rbiom() can also be given here.

rank

The taxonomic rank to return sums or means for. The default, 0, returns per-OTU summaries.

Value

A named, sorted numeric vector.

See Also

Other taxa_abundance: taxa_boxplot(), taxa_corrplot(), taxa_heatmap(), taxa_stacked(), taxa_stats(), taxa_table()

Examples

    library(rbiom) 
    
    taxa_sums(hmp50) %>% head(4)
    
    taxa_means(hmp50, 'Family') %>% head(5)


cmmr/rbiom documentation built on April 28, 2024, 6:38 a.m.