getNdPrdst: Get pre-distance

Description Usage Arguments Details See Also Examples

View source: R/get-nd-methods.R

Description

Return root to tip distance (prdst) for id

Usage

1
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

1
2
3
library(treeman)
tree <- randTree(10)
getNdPrdst(tree, id='t1')  # return the distance to root from t1

treeman documentation built on July 8, 2020, 7:28 p.m.