rename_tips {nichevol}R Documentation

Helper function to rename tips of trees for simulations

Description

Helper function to rename tips of trees for simulations

Usage

rename_tips(tree, names)

Arguments

tree

an object of class "phylo".

names

(character) vector of new names. Length must be equal to number of tips. They will be assigned in the order given.

Value

Tree of class "phylo" with specified names

Examples

# a simple tree
data("tree5", package = "nichevol")

# renaming tips
renamedTree <- rename_tips(tree5, c("a", "b", "c", "d", "e"))

[Package nichevol version 0.1.20 Index]