Returns a tree with a tip ID(s) removed
Details
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.
Examples
tree <- randTree(10)
tree <- rmTips(tree, "t1")
summary(tree)
#> Tree (TreeMan Object):
#> + 9 tips
#> + 8 internal nodes
#> + Binary
#> + PD 8.39
#> + Root node is "n1"
# 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)