Description Usage Arguments Details Value Author(s) Examples
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
1 | cladeIdentity(phy, nodeIDs, cladeMembersObj = NULL)
|
phy |
An object of class "phylo" (see ape package). |
nodeIDs |
Vector of node numbers (positive integers). |
cladeMembersObj |
Matrix of clade membership |
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.
matrix Matrix of unique presences for each node id
Gavin Thomas
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.