There are two ways to call this function:

aggregate_taxa(ta, rank = NULL)

Arguments

ta

a tidyamplicons object

rank

an optional rank to aggregate on

Details

* If the rank you are interested in is in the standard list, just supply it as an argument. * If not, delete all taxon variables except taxon_id and the ranks you are still interested in prior to calling this function.