Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

taxa_sums

Returns the total number of individuals observed from each species/taxa/OTU.


Description

A convenience function equivalent to rowSums or colSums, but where the orientation of the otu_table is automatically handled.

Usage

taxa_sums(x)

Arguments

Value

A numeric-class with length equal to the number of species in the table, name indicated the taxa ID, and value equal to the sum of all individuals observed for each taxa in x.

See Also

Examples

data(enterotype)
taxa_sums(enterotype)
data(esophagus)
taxa_sums(esophagus)

phyloseq

Handling and analysis of high-throughput microbiome census data

v1.34.0
AGPL-3
Authors
Paul J. McMurdie <joey711@gmail.com>, Susan Holmes <susan@stat.stanford.edu>, with contributions from Gregory Jordan and Scott Chamberlain
Initial release
2019-04-23

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.