sample_prev: Taxa/OTU number in all samples

Description Usage Arguments Value See Also Examples

View source: R/simple_stats.R

Description

Return a named vector of samples with the number of taxa/OTU where their abundance was not null. It is similar to the observed richness.

Usage

1
sample_prev(physeq)

Arguments

physeq

otu_table-class, or phyloseq-class

Value

A numeric-class with length equal to the number of samples in the table, name indicated the sample ID, and value equal to the number of taxa/OTU each samples contains.

See Also

taxa_sums on which this function is based. taxa_prev for taxa/OTU prevalence across samples.

Examples

1
2
3
require(phyloseq)
data(esophagus)
sample_prev(esophagus)

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