labelstonumbers {convevol}R Documentation

Converts taxon names to tip/edge numbers

Description

Converts taxon names to corresponding tip/edge numbers in the phylogeny.

Usage

labelstonumbers(phyl, tips)

Arguments

phyl

The phylogeny of interest in phylo format

tips

The names of the tips in question

Details

Simply reads in taxon names, determines which tip or edge number they correspond to, and returns those values

Value

The numbers of all of the tips of interest.

References

Paradis, E., J. Claude, and K. Strimmer (2004) APE: Analyses of phylogenetics and evolution in R langauge. Bioinformatics, 20, 289-290. Paradis, E. (2012) Analysis of Phylogenetics and Evolution with R (Second Edition). New York: Springer.

Examples


phyl<-rtree(10)
nums<-labelstonumbers(phyl,c("t1","t2","t3"))

[Package convevol version 2.2.0 Index]