branch_prune | R Documentation |
Keeps only specified ranks in specified ordering in all branches.
branch_prune(
branch.lst,
ranks = c("superkingdom", "phylum", "class", "order", "family", "genus", "species")
)
branch.lst |
a list of branches. |
ranks |
texts specifying the ranks to keep and their ordering. |
Branches in the taxonomy tree may have many different ranks or levels. This function is used
to prune them all to have the same set of ranks. Ranks may be missing in some branches.This function
will then fill in NA in these cells, ensuring all branches have the exact same ranks in the exact same
ordering. This is convenient for turning the list into a table, using as_tibble
.
A new branch-list with pruned branches all containing the exact same ranks.
Lars Snipen.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.