addTip: Add a new tip to a phylogenetic tree

Description Usage Arguments Details References Examples

Description

A new tip is added to an existing phylogenetic tree by specifying an edge/branch in the tree, name of the new tip and ages of the new tip and node.

Usage

1
addTip(tree, edge, tip.name, node.age, tip.age = 0, node.label)

Arguments

tree

phylogenetic tree (ape class)

edge

tree branch where tip will be added

tip.name

name for the new tip to be added

node.age

age of the new node to be created

tip.age

age of the new tip to be added (default 0)

node.label

label for the new

Details

Return a tree with an extra tip. The new tip is created by finding the edge in the tree, adding a new node at node.age and then by adding a new branch to tip.age. The function is modified code from multi2di from ape. N.B. ape uses node.label to label all internal nodes, MoreTreeTools uses it to labels all nodes including tip nodes.

References

No references yet! https://github.com/DomBennett/MoreTreeTools.

Examples

1
# example.var <- exampleFun (test.data)

DomBennett/MoreTreeTools documentation built on May 6, 2019, 2:51 p.m.