View source: R/aggregate_taxa.R
aggregate_taxa | R Documentation |
This function aggregates taxa at various taxonomic levels. Preparing data with aggregate_taxa()
is necessary for
further calculations.
aggregate_taxa(x, FUN = sum)
x |
Result of |
FUN |
The function to be applied for aggregating at higher taxonomic levels.
Must be sum for both abundances and presence-absence data.
Default to |
as_biomonitor
data(macro_ex)
data_bio <- as_biomonitor(macro_ex)
data_agr <- aggregate_taxa(data_bio)
# example for macrophytes
data(oglio)
oglio_asb <- as_biomonitor(oglio, group = "mf")
oglio_agg <- aggregate_taxa(oglio_asb)
richness(oglio_agg, tax_lev = "Species")
richness(oglio_agg, tax_lev = "Genus")
richness(oglio_agg, tax_lev = "Family")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.