Last chance! 50% off unlimited learning
Sale ends in
Return parental (most recent common ancestor) node id for ids
.
getPrnt(tree, ids)
TreeMan
object
vector of node ids
Returns a character.
getSubtree
,
https://github.com/DomBennett/treeman/wiki/get-methods
# NOT RUN {
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'))
# }
Run the code above in your browser using DataLab