add_root {ddtlcm}R Documentation

Add a singular root node to an existing nonsingular tree

Description

Add a singular root node to an existing nonsingular tree

Usage

add_root(tree_old, root_edge_length, root_label, leaf_label)

Arguments

tree_old

the original nonsingular "phylo" tree

root_edge_length

a number in (0, 1) representing the distance between the new and the original root nodes

root_label

a character label of the new root node

leaf_label

a character label of the leaf node

Value

a singular "phylo" tree


[Package ddtlcm version 0.2.1 Index]