no0br: No negative or zero branch length

Description Usage Arguments Value

Description

This function does a small tweak on the tree to replace negative-length branch with zero-length and/or assign zero-length branch between root and MRCA of the ingroup a small value

Usage

1
no0br(phy, remove.0length = TRUE, root.length = FALSE)

Arguments

phy

an tree of 'phylo' class

remove.0length

a logical specifying whether to replace negtative branch length with 0 (TRUE by default)

root.length

a logical specifying whether to assign a small value to the branch between root and MRCA of the ingroup (FALSE by default). If TRUE, the tree should be rooted first

Value

returns the tree without zero-length or negative-length branch


jingwyang/TreeExp documentation built on June 11, 2019, 6:17 p.m.