Creates a MinRank vector from an agglomerated data frame (based on eclectic::tax_climber). Use inside dplyr::mutate or directly assign to col. MinRank columns are the most specific taxonomic assignments (up to a threshold)
1 |
agg |
agglomerated data frame (with taxonomic ranks) |
end.rank |
the most specific taxonomic rank if available |
... |
additional arguments passed to eclectic::tax_climber |
rank |
a character vector of taxonomic ranks present in agg |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.