setNdsOther | R Documentation |
Return a tree with a user defined slot for node IDs.
setNdsOther(tree, ids, vals, slt_nm, parallel = FALSE, progress = "none")
tree |
|
ids |
id sof the nodes |
vals |
data for slot |
slt_nm |
slot name |
parallel |
logical, make parallel? |
progress |
name of the progress bar to use, see |
Runs setNdOther()
over multiple nodes. Parellizable.
setNdOther
https://github.com/DomBennett/treeman/wiki/set-methods
tree <- randTree(10)
# e.g. confidences for nodes
vals <- runif(min = 0, max = 1, n = tree["nall"])
tree <- setNdsOther(tree, tree["all"], vals, "confidence")
tree <- updateSlts(tree)
summary(tree)
(getNdsSlt(tree, ids = tree["all"], slt_nm = "confidence"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.