which.node: which.node

Description Usage Arguments Value Examples

View source: R/which.node.R

Description

Finds the a node given a vector of tip labels or tip indices.

Usage

1
which.node(phy, tips)

Arguments

phy

a phylo object

tips

a vector corresponding to a set tips. It can be either type character or numeric

Value

numeric object with a node number

Examples

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

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