getPrnt | R Documentation |
Return parental (most recent common ancestor) node id for ids
.
getPrnt(tree, ids)
tree |
|
ids |
vector of node ids |
Returns a character.
getSubtree
,
https://github.com/DomBennett/treeman/wiki/get-methods
data(mammals)
# choosing ids from the two main branches of apes allows to find the parent for all apes
ape_id <- getPrnt(mammals, ids = c("Homo_sapiens", "Hylobates_concolor"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.