ntip: Numbers of Tips of (Sub)trees

View source: R/ntip.R

ntipR Documentation

Numbers of Tips of (Sub)trees

Description

Counts the number of tips of a given clade of a phylogenetic tree.

Usage

ntip(phy, node)

Arguments

phy

An object of class phylo.

node

An integer given the number of an internal node.

Value

An integer giving the number of tips.

Examples

set.seed(1234)
tr <- rtree(12)
plot(tr); nodelabels()
ntip(tr, 16)

heibl/ips documentation built on April 24, 2024, 3:19 a.m.