powered by
Return a tree with the span of a node altered.
setNdSpn(tree, id, val)
TreeMan object
TreeMan
id of node whose preceding edge is to be changed
new span
Takes a tree, a node ID and a new value for the node's preceding branch length (span).
setNdsSpn https://github.com/DomBennett/treeman/wiki/set-methods
setNdsSpn
# NOT RUN { library(treeman) tree <- randTree(10) tree <- setNdSpn(tree, id='t1', val=100) tree <- updateSlts(tree) summary(tree) # }
Run the code above in your browser using DataLab