trim_common | R Documentation |
Trim lineages until the shallowest common rank.
trim_common(lineage, remove_void = TRUE, only_tail = TRUE)
lineage |
string. Vector of lineages. |
remove_void |
Should void ranks be removed? Default to |
only_tail |
Logical to be passed to |
The trimmed lineages, with same depth.
lineage1 <- "k__Bacteria|p__Verrucomicrobia|c__Verrucomicrobiae"
lineage2 <- "k__Bacteria|p__Firmicutes"
lineage3 <- "k__Bacteria|p__|c__Clostridia"
trim_common(c(lineage1, lineage2, lineage3), remove_void = FALSE)
trim_common(c(lineage1, lineage2, lineage3), only_tail = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.