Character vector specifying labels of leaves in tree to be dropped,
or integer vector specifying the indices of leaves to be dropped.
Specifying the index of an internal node will drop all descendants of that
node.
preorder
Logical specifying whether to Preorder the tree before
dropping tips. Necessary if a tree's edges may be unconventionally numbered.
Value
DropTip() returns a tree of class phylo, with the requested
leaves removed.
KeepTip() returns tree with all leaves not in tip removed,
in preorder.
Details
This function is more robust than ape::drop.tip() as it does not
require any particular internal node numbering schema.