setNdID: Set the ID of a node

Description Usage Arguments Details See Also Examples

View source: R/set-methods.R

Description

Return a tree with the ID of a node altered.

Usage

1
setNdID(tree, id, val)

Arguments

tree

TreeMan object

id

id to be changed

val

new id

Details

IDs cannot be changed directly for the TreeMan class. To change an ID use this function. Warning: all IDs must be unique, avoid spaces in IDs and only use letters, numbers and underscores. Use updateSlts after running.

See Also

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

Examples

1
2
3
4
library(treeman)
tree <- randTree(10)
tree <- setNdID(tree, 't1', 'heffalump')
tree <- updateSlts(tree)

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