tipDes: Find Descendent Tips From A Common Ancestor

Description Usage Arguments Details Author(s) Examples

View source: R/tipDes.R

Description

This function finds tip descendants from a common ancestor

Usage

1
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

1
2
3
4
5
6
7
8
set.seed(1029)
# one node
phy <- rcoal(10)
node <- 13
tipDes(phy, node)
## multiple nodes
node <- c(13,14,15)
tipDes(phy, node)

PuttickMacroevolution/MCMCtreeR documentation built on Nov. 24, 2019, 5:22 a.m.