get_taxa_richness: get_taxa_richness

View source: R/get_taxa_richness.R

get_taxa_richnessR Documentation

get_taxa_richness

Description

This function calculates the absolute richness of a taxon or of a set taxa at the taxonomic level provided by the user.

Usage

get_taxa_richness(x, taxa = NULL, tax_lev = NULL)

Arguments

x

Result of aggregate_taxa().

taxa

A taxon or a vector of taxa.

tax_lev

Taxonomic level at which richness has to be calculated. It could be also a vector of 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)
get_taxa_richness(data_agr, taxa = "Ephemeroptera", tax_lev = "Family")

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