Last chance! 50% off unlimited learning
Sale ends in
Return node ids for connecting id
to root.
getNdsPrids(tree, ids, ordrd = FALSE, parallel = FALSE, progress = "none")
TreeMan
object
vector of node ids
logical, ensure returned prids are ordered ID to root
logical, make parallel?
name of the progress bar to use, see create_progress_bar
Returns a list, parallizable. The function will work faster
if ordrd
is FALSE.
getNdPrids
,
getNdPtids
,
getNdsPtids
,
https://github.com/DomBennett/treeman/wiki/get-methods
# NOT RUN {
library(treeman)
tree <- randTree(10)
getNdsPrids(tree, ids=tree['tips'])
# }
Run the code above in your browser using DataLab