tax_lca {pctax} | R Documentation |
Calculate the lowest common ancestor (LCA) of a set of taxa
Description
Calculate the lowest common ancestor (LCA) of a set of taxa
Usage
tax_lca(df)
Arguments
df |
a data frame with taxonomic information, with columns representing taxonomic levels |
Value
character
Examples
df <- data.frame(
A = c("a", "a", "a", "a"),
B = c("x", "x", "y", "y"),
C = c("1", "1", "2", "3"),
stringsAsFactors = FALSE
)
tax_lca(df)
[Package pctax version 0.1.3 Index]