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

sample_sums

Returns the total number of individuals observed from each sample.


Description

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

Usage

sample_sums(x)

Arguments

Value

A named numeric-class length equal to the number of samples in the x, name indicating the sample ID, and value equal to the sum of all individuals observed for each sample in x.

See Also

Examples

data(enterotype)
sample_sums(enterotype)
data(esophagus)
sample_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.