richness {microbiome} | R Documentation |
Community richness index.
richness(x, detection = NULL)
x |
A species abundance vector, or matrix (taxa/features x samples)
with the absolute count data (no relative abundances), or
|
detection |
Detection threshold. |
By default, returns the richness for multiple detection thresholds defined by the data quantiles. If the detection argument is provided, returns richness with that detection threshold.
A vector of richness indices
Contact: Leo Lahti microbiome-admin@googlegroups.com
global
data(dietswap) d <- richness(dietswap, detection=0)