abundance: abundance

View source: R/abundance.R

abundanceR Documentation

abundance

Description

Calculates taxa abundance at the desired taxonomic level. Unassigned taxa can be included or excluded from the calculation.

Usage

abundance(x, tax_lev = "Taxa", unassigned = FALSE)

Arguments

x

Result of aggregate_taxa().

tax_lev

Taxonomic level at which the calculation has to be performed.

unassigned

Does unassigned taxa need to be taken into account? If yes set unassigned to TRUE, otherwise FALSE.

Details

If unassigned is set to TRUE abundances are equal among taxonomic levels.

See Also

aggregate_taxa get_taxa_abundance

Examples

data(macro_ex)
data_bio <- as_biomonitor(macro_ex)
data_agr <- aggregate_taxa(data_bio)
abundance(data_agr, tax_lev = "Family")
abundance(data_agr, tax_lev = "Family", unassigned = TRUE)

alexology/biomonitoR documentation built on April 7, 2024, 10:15 a.m.