treeman (version 1.1.3)

getNdPrdst: Get pre-distance

Description

Return root to tip distance (prdst) for id

Usage

getNdPrdst(tree, id)

Arguments

tree

TreeMan object

id

node id

Details

Sums the lengths of all branches from id to root.

See Also

getNdsPrdst, https://github.com/DomBennett/treeman/wiki/get-methods

Examples

Run this code
# NOT RUN {
library(treeman)
tree <- randTree(10)
getNdPrdst(tree, id='t1')  # return the distance to root from t1
# }

Run the code above in your browser using DataCamp Workspace