get_last_clade {yatah} | R Documentation |
Extract the last clade of a lineage
Description
Extract the last clade of a lineage
Usage
get_last_clade(lineage, same = TRUE)
Arguments
lineage |
string. Vector of lineages. |
same |
logical. Does the lineage have the same depth? Default to |
Value
A string. The last clades of the given lineages.
Examples
lineage1 <- "k__Bacteria|p__Verrucomicrobia|c__Verrucomicrobiae"
lineage2 <- "k__Bacteria|p__Firmicutes|c__Clostridia"
get_last_clade(c(lineage1, lineage2))
[Package yatah version 1.0.0 Index]