Description Usage Arguments Details Value Author(s) References Examples
Simple prevalence measure.
1 2 3 4 5 6 7 | prevalence(
x,
detection = 0,
sort = FALSE,
count = FALSE,
include.lowest = FALSE
)
|
x |
A vector, data matrix or |
detection |
Detection threshold for absence/presence (strictly greater by default). |
sort |
Sort the groups by prevalence |
count |
Logical. Indicate prevalence as fraction of samples (in percentage [0, 1]; default); or in absolute counts indicating the number of samples where the OTU is detected (strictly) above the given abundance threshold. |
include.lowest |
Include the lower boundary of the detection and prevalence cutoffs. FALSE by default. |
For vectors, calculates the fraction (count=FALSE) or number (count=TRUE) of samples that exceed the detection. For matrices, calculates this for each matrix column. For phyloseq objects, calculates this for each OTU. The relative prevalence (count=FALSE) is simply the absolute prevalence (count=TRUE) divided by the number of samples.
For each OTU, the fraction of samples where a given OTU is detected. The output is readily given as a percentage.
Contact: Leo Lahti microbiome-admin@googlegroups.com
A Salonen et al. The adult intestinal core microbiota is determined by analysis depth and health status. Clinical Microbiology and Infection 18(S4):16 20, 2012. To cite the microbiome R package, see citation('microbiome')
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.