getLatestAncestor | R Documentation |
Utility functions to find the ancestors of a node or tip
getLatestAncestor(phy, x) getAncestor(phy, x, level = 1, trace = FALSE)
phy |
a phylo-class object from the |
x |
the index of the focal node/tip |
level |
the depth between the ancestor and the focal node/tip |
trace |
logical, if FALSE (the default), only the earliest ancestor is returned, otherwise, all ancestors along the path are returned |
A vector of ancestor indices is returned. If root is supplied, NA
will be returned
[getRoot][getNextDescendants][findSisters][getConnected]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.