getSpeciesNumber: Get the number of species

View source: R/utils.R

getSpeciesNumberR Documentation

Get the number of species

Description

Compute the number of different species on a tree that possibly has replicates coded as tips with zero length branches.

Usage

getSpeciesNumber(phy, tol = .Machine$double.eps^(1/2))

Arguments

phy

a phylogentic tree, with possible replicates coded as tips with zero length branches.

tol

a numeric value giving the tolerance to consider a branch length significantly greater than zero.

Value

the number of different species in the tree


pbastide/phylolimma documentation built on Nov. 17, 2024, 1:34 p.m.