name_nodenumber_conversion: Convert between node/tip labels and integer node numbers

Description Usage Arguments Value Examples

Description

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.

Usage

1
2
3
nn.to.name(tr, x)

name.to.nn(tr, x)

Arguments

tr

object of type phylo

x

vector of numerics or characters

Value

vector

Examples

1
2
3
4
tr <- named_rtree(5)
name.to.nn(tr, 'n1')
name.to.nn(tr,c('n1','n2','t1'))
nn.to.name(tr, 1:9)

philr documentation built on Nov. 8, 2020, 5:38 p.m.