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

DomBennett/treeman documentation built on Nov. 12, 2020, 1:35 p.m.