Last chance! 50% off unlimited learning
Sale ends in
Returns a tree with a tip ID(s) removed
rmTips(tree, tids, drp_intrnl = TRUE, progress = "none")
TreeMan
object
tip IDs
Boolean, drop internal branches, default FALSE
name of the progress bar to use, see create_progress_bar
Removes tips in a tree. Set drp_intrnl to FALSE to convert internal nodes into new tips. Warning: do not use this function to remove internal nodes, this create a corrupted tree.
addTip
, rmNodes
,
https://github.com/DomBennett/treeman/wiki/manip-methods
# NOT RUN {
library(treeman)
tree <- randTree(10)
tree <- rmTips(tree, 't1')
summary(tree)
# running the function using an internal
# node will create a corrupted tree
tree <- rmTips(tree, 'n3')
# run summary() to make sure a change has
# not created a corruption
#summary(tree)
# }
Run the code above in your browser using DataLab