add_leaf_branch {ddtlcm}R Documentation

Add a leaf branch to an existing tree tree_old

Description

Add a leaf branch to an existing tree tree_old

Usage

add_leaf_branch(tree_old, div_t, new_leaf_label, where, position)

Arguments

tree_old

the original "phylo" tree (with K leaves) to which the leaf branch will be added

div_t

divergence time of the new branch

new_leaf_label

the label of the newly added leaf

where

node name of to which node in the existing tree the new leaf branch should connect to

position

the numerical location of the left side of the added branch

Value

a "phylo" tree with K+1 leaves


[Package ddtlcm version 0.2.1 Index]