Skip to contents

Return summed value of all descending spns

Usage

getNdPD(tree, id)

Arguments

tree

TreeMan object

id

node id

Details

Sums the lengths of all descending branches from a node.

Examples


tree <- randTree(10)
getNdPD(tree, id = "n1") # return PD of n1 which in this case is for the whole tree
#> [1] 5.626307