Description Usage Arguments Value Note Author(s) Examples
Calculates observed richness on a single column of relative abundance data.
| 1 | 
| sample | A vector of relative abundance data, typically a single column in a matrix | 
Returns a single number indicating the number of taxa in the tested sample
Use apply functions to calculate richness for all samples in a matrix
Alexandra Linz <amlinz16@gmail.com>
| 1 2 |  data(otu_table)
 richness <- apply(otu_table, 2, obs_richness)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.