powered by
RenumberTips(tree, tipOrder) sorts the tips of a phylogenetic tree such that the indices in tree$edge[, 2] correspond to the order of tips given in tipOrder
RenumberTips(tree, tipOrder)
tree$edge[, 2]
tipOrder
A tree of class phylo.
phylo
A character vector containing the values of tree$tip.label in the desired sort order
tree$tip.label
# NOT RUN { data(Lobo) # Loads the phyDat object Lobo.phy tree <- RandomTree(Lobo.phy) tree <- RenumberTips(tree, names(Lobo.phy)) # }
Run the code above in your browser using DataLab