taxa_stats: Apply statistics function to taxa abundance vector

Description Usage Arguments Value See Also Examples

Description

It generalize the taxa_sums function and enable the use of several summary functions.

Usage

1
taxa_stats(physeq, ...)

Arguments

physeq

otu_table-class, or phyloseq-class

...

The function to be applied to the OTU table

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 result of the function applied through the passed expression (...).

See Also

taxa_sums on which this function is based.

Examples

1
2
3
4
require(phyloseq)
data(esophagus)
taxa_stats(esophagus, mean)[1:6]
taxa_stats(esophagus, var)[1:6]

cpauvert/psadd documentation built on Nov. 22, 2020, 9:19 a.m.