which.tips: which.tips

Description Usage Arguments Value Examples

View source: R/which.tips.R

Description

Finds a set of tips associated to a given node.

Usage

1
which.tips(phy, node, text = FALSE)

Arguments

phy

a phylo object

node

a vector corresponding to a single node in numeric format

text

a boolean indicating if tips are to be returned as text (default: FALSE)

Value

numeric vector object with tips

Examples

1
2
3
4
file <- system.file("data/mcc.tre", package="rBt")
tr <- read.nexus(file)
# find the root node:
tips_in_node <- which.tips(tr, 130)

santiagosnchez/rBt documentation built on Aug. 9, 2021, 11:52 p.m.