Modify a tree such that it matches a specified constraint.
This is at present a somewhat crude implementation that attempts to retain
much of the structure of
tree whilst guaranteeing compatibility with
each entry in
ImposeConstraint(tree, constraint) AddUnconstrained(constraint, toAdd, asPhyDat = TRUE)
A tree of class
An object of class
phyDat; returned trees will be
perfectly compatible with each character in
for further examples.
Character vector specifying taxa to add to constraint.
TRUE, return a
phyDat object; if
ImposeConstraint() returns a tree of class
AddUnconstrained: Expand a constraint to include unconstrained