| getPrnt {treeman} | 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
library(treeman)
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'))