R/phylogenetic.R
tax_lca.Rd
Calculate the lowest common ancestor (LCA) of a set of taxa
tax_lca(df)
a data frame with taxonomic information, with columns representing taxonomic levels
character
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) #> [1] "a"