node2name {phybase} | R Documentation |
This function replaces node numbers in a tree string by species names.
node2name(treestr,name="")
treestr |
a tree string |
name |
species names |
The function returns the tree string with the node numbers replaced by the species names.
Liang Liu
treestr<-"(((1:4.2,2:4.2):3.1,3:7.3):6.3,4:13.5);" name<-c("H","C", "G", "O") node2name(treestr,name)