powered by
Return a tree with the IDs of nodes altered.
setNdsID(tree, ids, vals, parallel = FALSE, progress = "none")
TreeMan object
TreeMan
ids to be changed
new ids
logical, make parallel?
name of the progress bar to use, see create_progress_bar
create_progress_bar
Runs setNdID() over multiple nodes. Warning: all IDs must be unique, avoid spaces in IDs, only use numbers, letters and underscores. Parellizable.
setNdID()
setNdID https://github.com/DomBennett/treeman/wiki/set-methods
setNdID
# NOT RUN { library(treeman) tree <- randTree(10) new_ids <- paste0('heffalump_', 1:tree['ntips']) tree <- setNdsID(tree, tree['tips'], new_ids) summary(tree) # }
Run the code above in your browser using DataLab