sample_stats: Apply statistics function to samples.

Description Usage Arguments Value See Also Examples

Description

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

Usage

1
sample_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 samples in the table. Names indicate sample ID, and values equal to the result of the function applied through the passed expression (...).

See Also

sample_sums on which this function is based.

Examples

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

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