is_leaf: Tests whether taxa are leaves in a taxonomic tree

View source: R/taxo.R

is_leafR Documentation

Tests whether taxa are leaves in a taxonomic tree

Description

Tests whether taxa are leaves in a taxonomic tree

Usage

is_leaf(taxon_ids, taxo)

Arguments

taxon_ids

internal, numeric ids of the taxa.

taxo

a taxonomy data.frame, typically from extract_taxo().

See Also

Other taxonomy-related functions: ancestors(), as.taxo(), children(), descendants(), extract_taxo(), lineage(), parent(), taxo_id(), taxo_name()

Examples

print(as.Node(taxo), "id")
is_leaf(5, taxo)
is_leaf(6, taxo)
is_leaf(NA, taxo)
is_leaf(c(5,NA,6,NA), taxo)

jiho/ecotaxar documentation built on Jan. 16, 2024, 12:26 a.m.