pullNodeSeq {convevol} | R Documentation |
Extracts a vector of ancestors for a given taxon. Code written by Jonathan S. Mitchell for Zelditch et al. (2017)
Description
pullNodeSeq Extracts a vector of all ancestors of a given taxon in a phylogeny.
Usage
pullNodeSeq(phy, tip)
Arguments
phy |
The phylogeny of interest in phylo format |
tip |
The tip of interest |
Value
A vector of ancestors
References
Zelditch, M.L., J. Ye, J.S. Mitchell, and D.L. Swiderski. 2017. Rare ecomorphological convergence on a complex adaptive landscape: Body size and diet mediate evolution of jaw shape in squirrels (Sciuridae). Evolution 71:633-649.
Examples
phylogeny<-rtree(100)
answer<-pullNodeSeq(phy=phylogeny,tip="t1")
[Package convevol version 2.2.0 Index]