Learn R Programming

surface (version 0.4-1)

ouchDescendants: 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 ouchtree object

Value

A vector of integers corresponding to the descendents (integers match the @nodes element of the ouchtree)

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.