Converts negative branch lengths of any tree to zero.
Usage
tree.zero(tree)
Value
A phylo object.
Arguments
tree
A phylo object.
Details
Converts branches with negative values to zero while shortening only the two branches immediately below it by the same absolute amount to ensure the tree remains with tips at same distances and there are no polytomies.