cladeIdentity: Identify branches (including tips) descended from a node...

Description Usage Arguments Details Value Author(s) Examples

Description

Internal function to get presence absence of descendent branches from a vector of node numbers. The descendents include the branch leading to the focal node (i.e. node defines the stem group no crown group

Usage

1
cladeIdentity(phy, nodeIDs, cladeMembersObj = NULL)

Arguments

phy

An object of class "phylo" (see ape package).

nodeIDs

Vector of node numbers (positive integers).

cladeMembersObj

Matrix of clade membership

Details

The function returns a matrix of unique presences given the selected node. If the selected nodes are nested then presences are only recorded for the least inclusive node.

Value

matrix Matrix of unique presences for each node id

Author(s)

Gavin Thomas

Examples

1
2
3
4
5
## Read in phylogeny and data from Thomas et al. (2009)
data(anolis.tree)
data(anolis.data)

cladeIdentityMatrix <- cladeIdentity(phy=anolis.tree, nodeIDs=170)

motmot.2.0 documentation built on May 1, 2019, 9:22 p.m.