setNdsSpn | R Documentation |
Return a tree with the spans of nodes altered.
setNdsSpn(tree, ids, vals, parallel = FALSE, progress = "none")
tree |
|
ids |
ids of nodes whose preceding edges are to be changed |
vals |
new spans |
parallel |
logical, make parallel? |
progress |
name of the progress bar to use, see |
Runs setNdSpn
over multiple nodes. Parallelizable.
setNdSpn
https://github.com/DomBennett/treeman/wiki/set-methods
tree <- randTree(10)
# make tree taxonomic
tree <- setNdsSpn(tree, ids = tree["all"], vals = 1)
summary(tree)
# remove spns by setting all to 0
tree <- setNdsSpn(tree, ids = tree["all"], vals = 0)
summary(tree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.