Renumber a tree's tips
RenumberTips(tree, tipOrder)
sorts the tips of a phylogenetic tree tree
such that the indices in tree$edge[, 2]
correspond to the order of
leaves given in tipOrder
.
RenumberTips(tree, tipOrder) ## S3 method for class 'phylo' RenumberTips(tree, tipOrder) ## S3 method for class 'multiPhylo' RenumberTips(tree, tipOrder) ## S3 method for class 'list' RenumberTips(tree, tipOrder)
tree |
A tree of class |
tipOrder |
A character vector containing the values of
|
RenumberTips()
returns tree
, with the tips' internal
representation numbered to match tipOrder
.
Martin R. Smith (martin.smith@durham.ac.uk)
Other tree manipulation:
AddTip()
,
CollapseNode()
,
ConsensusWithout()
,
DropTip()
,
EnforceOutgroup()
,
LeafLabelInterchange()
,
MakeTreeBinary()
,
RenumberTree()
,
Renumber()
,
RootTree()
,
SingleTaxonTree()
,
SortTree()
,
Subtree()
data('Lobo') # Loads the phyDat object Lobo.phy tree <- RandomTree(Lobo.phy) tree <- RenumberTips(tree, names(Lobo.phy))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.