Learn R Programming

allometric (version 2.1.0)

aggregate_taxa: Aggregate family, genus, and species columns of `tbl_df`` into taxa data structure

Description

This function facilitates aggregating family, genus, and species columns into the taxa data structure, which is a nested list composed of multiple "taxons". A taxon is a list containing family, genus, and species fields.

Usage

aggregate_taxa(table, remove_taxa_cols = TRUE)

Value

A tibble with family, genus, and species columns added

Arguments

table

The table for which the taxa will be aggregated

remove_taxa_cols

Whether or not to remove the family, genus, and species columns after aggregation