Description Usage Arguments Details See Also Examples
Return a tree with the ID of a node altered.
1 | setNdID(tree, id, val)
|
tree |
|
id |
id to be changed |
val |
new id |
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.
setNdsID
https://github.com/DomBennett/treeman/wiki/set-methods
1 2 3 4 | library(treeman)
tree <- randTree(10)
tree <- setNdID(tree, 't1', 'heffalump')
tree <- updateSlts(tree)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.