Create a generic function like merge_taxa() but that allows multiple groups of taxa to be merged simultaneously. Instead of taking a vector with the names of taxa for one group, it will take a vector that defines all the groups. This function can be then be used in speedyseq's tax_glom and tree_glom implementations, removing the need for code redundancy.
Create a generic function like
merge_taxa()
but that allows multiple groups of taxa to be merged simultaneously. Instead of taking a vector with the names of taxa for one group, it will take a vector that defines all the groups. This function can be then be used in speedyseq'stax_glom
andtree_glom
implementations, removing the need for code redundancy.