| name_nodenumber_conversion {philr} | R Documentation |
Useful if you want to convert between node labels (c), tip labels
(t) and the internal integer number that identifies that node
(nn). Particularly for use with plotting libraries.
nn.to.name(tr, x) name.to.nn(tr, x)
tr |
object of type |
x |
vector of numerics or characters |
vector
tr <- named_rtree(5)
name.to.nn(tr, 'n1')
name.to.nn(tr,c('n1','n2','t1'))
nn.to.name(tr, 1:9)