findTerminalgivenLength: Find terminal branches with lengths exceeding a specified...

View source: R/utilities.R

findTerminalgivenLengthR Documentation

Find terminal branches with lengths exceeding a specified threshold.

Description

This function identifies the terminal branches in a phylogenetic tree that have lengths greater than a given threshold.

Usage

findTerminalgivenLength(arbol, valor = 0)

Arguments

arbol

A phylogenetic tree object in the 'phylo' format.

valor

A numeric value representing the length threshold. Branches with lengths greater than this value will be identified. Defaults to 0.0.

Value

A character vector containing the labels of the terminal branches that meet the length threshold.

Examples


# Find terminal branches with lengths greater than 0.5
long_branches <- findTerminalgivenLength(arbol = tree, valor = 0.5) 


Dmirandae/blepd documentation built on Jan. 17, 2025, 3:08 p.m.