Learn R Programming

phylotools (version 0.1.2)

sub.tip.label: Substitute the tip labels of a phylogenetic tree

Description

This function may be used in changing the tip labels of a phylogenetic tree according to a reference data table.

Usage

sub.tip.label(tree, dat)

Arguments

tree
Phylogenetic tree
dat
A dataframe with the first the tip labels and the second the substitutions.

Value

A Phylogenetic tree with the tip labels substituted

Details

To be added

References

None

Examples

Run this code

library(ape)
data(bird.families)
tips <- bird.families$tip.label
abr <- paste("fam",1:length(tips), sep = "")
dat <- data.frame(tips, abr)
ntree <- sub.tip.label(bird.families, dat)

Run the code above in your browser using DataLab