Learn R Programming

convevol (version 2.2.1)

labelstonumbers: Converts taxon names to tip/edge numbers

Description

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

Usage

labelstonumbers(phyl, tips)

Value

The numbers of all of the tips of interest.

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

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

Run this code

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

Run the code above in your browser using DataLab