setNdsID | R Documentation |
Return a tree with the IDs of nodes altered.
setNdsID(tree, ids, vals, parallel = FALSE, progress = "none")
tree |
|
ids |
ids to be changed |
vals |
new ids |
parallel |
logical, make parallel? |
progress |
name of the progress bar to use, see |
Runs setNdID()
over multiple nodes. Warning: all IDs must be unique,
avoid spaces in IDs, only use numbers, letters and underscores. Parellizable.
setNdID
https://github.com/DomBennett/treeman/wiki/set-methods
tree <- randTree(10)
new_ids <- paste0("heffalump_", 1:tree["ntips"])
tree <- setNdsID(tree, tree["tips"], new_ids)
summary(tree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.