Skip to contents

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.

Examples


tree <- randTree(10)
getNdPrdst(tree, id = "t1") # return the distance to root from t1
#> [1] 3.752139