last_rank: Extract the last rank of a lineage

Description Usage Arguments Value Examples

View source: R/extract.R

Description

Extract the last rank of a lineage

Usage

1
last_rank(lineage, same = TRUE)

Arguments

lineage

string. Vector of lineages.

same

logical. Does the lineage have the same depth? Default to TRUE.

Value

A string. The last rank of the given lineages.

Examples

1
2
3
lineage1 <- "k__Bacteria|p__Verrucomicrobia|c__Verrucomicrobiae"
lineage2 <- "k__Bacteria|p__Firmicutes|c__Clostridia"
last_rank(c(lineage1, lineage2))

yatah documentation built on March 1, 2020, 5:08 p.m.