Learn R Programming

microbial (version 0.0.21)

richness: calculat the richness for the phyloseq object

Description

calculat the richness for the phyloseq object

Usage

richness(physeq, method = c("Observed", "Simpson", "Shannon"))

Value

data.frame of alpha diversity

Arguments

physeq

A phyloseq object containing merged information of abundance, taxonomic assignment, sample data including the measured variables and categorical information of the samples, and / or phylogenetic tree if available.

method

A list of character strings specifying method to be used to calculate for alpha diversity in the data. Available methods are: "Observed","Chao1","ACE","Richness", "Fisher", "Simpson", "Shannon", "Evenness","InvSimpson".

Author

Kai Guo

Examples

Run this code
{
data("Physeq")
rich <-richness(physeq,method=c("Simpson", "Shannon"))
}

Run the code above in your browser using DataLab