tips: Get descending tips

View source: R/geiger_functions.R

tipsR Documentation

Get descending tips

Description

The function returns the numbers or labels of tips descending from a given node.

Usage

tips(tree,node,labels=TRUE)

Arguments

tree

a phylogenetic tree. The tree needs not to be ultrametric and fully dichotomous.

node

the number of focal node

labels

if TRUE (default) the function returns the labels of descending tips.

Value

The tips, either labels or numbers depending on the argument labels, descending from the node.

Author(s)

Silvia Castiglione, Pasquale Raia, Carmela Serio

Examples

data(DataOrnithodirans)
DataOrnithodirans$treedino->treedino
tips(tree=treedino,node=677,labels=FALSE)
tips(tree=treedino,node=677,labels=TRUE)

RRphylo documentation built on June 7, 2023, 5:49 p.m.