get_position: Get Position on branch
Description
Find the position on the branch above the node of the times sample.
Warning: The node needs to be extracted with get_node
.
Result of this function is to be used in bind.tree
Usage
get_position(tdata, node, time)
Value
time between the node and the sampling event.
Arguments
- tdata
a tibble extracted from a treedata
object.
- node
node below the sampling event
- time
time of the sampling event