ouchDescendants: Obtain Descendants from an 'ouch' Tree

Description Usage Arguments Value Author(s) References Examples

View source: R/ouchDescendants.R

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

1
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)

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

1
2
3
4
5
6
data(surfaceDemo)
tree<-surfaceDemo$tree
dat<-surfaceDemo$sim$dat
olist<-convertTreeData(tree,dat)
otree<-olist[[1]]
ouchDescendants(6, otree)

surface documentation built on Dec. 18, 2020, 5:08 p.m.