setNdSpn: Set the branch length of a specific node

Description Usage Arguments Details See Also Examples

View source: R/set-methods.R

Description

Return a tree with the span of a node altered.

Usage

1
setNdSpn(tree, id, val)

Arguments

tree

TreeMan object

id

id of node whose preceding edge is to be changed

val

new span

Details

Takes a tree, a node ID and a new value for the node's preceding branch length (span).

See Also

setNdsSpn https://github.com/DomBennett/treeman/wiki/set-methods

Examples

1
2
3
4
5
library(treeman)
tree <- randTree(10)
tree <- setNdSpn(tree, id='t1', val=100)
tree <- updateSlts(tree)
summary(tree)

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