taxa_prev: OTU/Species prevalence in all samples

Description Usage Arguments Value See Also Examples

View source: R/simple_stats.R

Description

Return a named vector of taxa/OTU with the number of samples where their abundance was not null.

Usage

1
taxa_prev(physeq)

Arguments

physeq

otu_table-class, or phyloseq-class

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 species prevalence in every samples where it occurs.

See Also

taxa_sums on which this function is based. sample_prev for a similar output on samples.

Examples

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

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