getExtant | R Documentation |
Computes the set of extant or extinct tips from a phylogenetic tree.
getExtant(tree, tol=1e-8)
getExtinct(tree, tol=1e-8)
tree |
a phylogeny stored as an object of class |
tol |
a tolerance value to account for numerical imprecision. |
The function getExtant
takes a tree as input and returns a vector containing the names of all the tips that have a height above the root that is equal (to a degree of numerical precision determined by tol
) to the height of the highest tip. These tips are presumed to be "extant."
getExtinct
returns the complement.
A vector with the tip names of extant or extinct species in the tree.
Liam Revell liam.revell@umb.edu
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.
nodeHeights
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.