ouchDescendants {surface} | R Documentation |
Obtain Descendants from an ouch
Tree
Description
Identifies the nodes and tip taxa descended from a given ancestor in an ouchtree
or hansentree
object. Used to test whether two ‘convergent’ regimes are actually nested when randomly placing regime shifts in a Hansen model in the function surfaceSimulate
Usage
ouchDescendants(node, otree)
Arguments
node |
Which node in the ouchtree object to identify the descendants of |
otree |
An |
Value
A vector of integers corresponding to the descendents (integers match the @nodes
element of the ouchtree
)
Author(s)
Travis Ingram
References
Ingram, T. & Mahler, D.L. (2013) SURFACE: detecting convergent evolution from comparative data by fitting Ornstein-Uhlenbeck models with stepwise AIC. Methods in Ecology and Evolution 4: 416-425.
Examples
data(surfaceDemo)
tree<-surfaceDemo$tree
dat<-surfaceDemo$sim$dat
olist<-convertTreeData(tree,dat)
otree<-olist[[1]]
ouchDescendants(6, otree)
[Package surface version 0.5 Index]