tipDes {MCMCtreeR}R Documentation

Find Descendent Tips From A Common Ancestor

Description

This function finds tip descendants from a common ancestor

Usage

tipDes(phy, node)

Arguments

phy

user tree in ape format

node

one or more nodes from the ape format that designate the crown monophyletic group

Details

If a single node number is supplied the function returns a vector of tip labels. When more than one node number is supplied the function returns a list with each element a vector of tip labels for that node.

Author(s)

Mark Puttick

Examples

set.seed(1029)
# one node
phy <- rcoal(10)
node <- 13
tipDes(phy, node)
## multiple nodes
node <- c(13,14,15)
tipDes(phy, node)

[Package MCMCtreeR version 1.1 Index]