powered by
Substitute the tip labels of a phylogenetic tree according to a reference data table.
sub.taxa.label(tree, dat)
Phylogenetic tree
A dataframe with the first column the tip labels and the second column the new names.
A Phylogenetic tree with the tip labels substituted
read.tree
# NOT RUN { library(ape) data(bird.families) tips <- bird.families$tip.label abr <- paste("fam",1:length(tips), sep = "") dat <- data.frame(tips, abr) ntree <- sub.taxa.label(bird.families, dat) # }
Run the code above in your browser using DataLab