Learn R Programming

MCMCtreeR (version 1.1)

tipDes: 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.

Examples

Run this code
# NOT RUN {
set.seed(1029)
# one node
phy <- rcoal(10)
node <- 13
tipDes(phy, node)
## multiple nodes
node <- c(13,14,15)
tipDes(phy, node)
# }

Run the code above in your browser using DataLab