powered by
Returns a tree with a node ID(s) removed
rmNodes(tree, nids, progress = "none")
TreeMan object
TreeMan
internal node IDs
name of the progress bar to use, see create_progress_bar
create_progress_bar
Removes nodes in a tree. Joins the nodes following to the nodes preceding the node to be removed. Creates polytomies. Warning: do not use this function to remove tip nodes, this create a corrupted tree.
addTip, rmTips, https://github.com/DomBennett/treeman/wiki/manip-methods
addTip
rmTips
# NOT RUN { library(treeman) tree <- randTree(10) tree <- rmNodes(tree, 'n3') summary(tree) # tree is now polytmous # }
Run the code above in your browser using DataLab