dominant: Dominant taxa

View source: R/dominant.R

dominantR Documentation

Dominant taxa

Description

Returns the dominant taxonomic group for each sample.

Usage

dominant(x, level = NULL)

Arguments

x

A phyloseq-class object

level

Optional. Taxonomic level.

Value

A vector of dominance indices

Author(s)

Leo Lahti microbiome-admin@googlegroups.com

Examples

data(dietswap)
# vector
d <- dominant(dietswap)

microbiome/microbiome documentation built on Dec. 12, 2024, 2:45 p.m.