internodes: Get internodes

View source: R/taxonomy.R

internodesR Documentation

Get internodes

Description

Get internodes indexes for each taxon or another per-taxon value. An internode is a taxon with exactly one supertaxon and one subtaxon. These taxa can be removed without losing information on the relationships of the remaining taxa.

Usage

internodes(x)

Arguments

x

The object to get internodes for, such as a taxonomy object.

See Also

Other taxonomy functions: leaves(), roots(), stems(), subtaxa(), supertaxa()

Other internode functions: is_internode()

Examples

x <- taxonomy(c('Carnivora', 'Felidae', 'Panthera', 'Panthera leo',
                'Panthera tigris', 'Ursidae', 'Ursus', 'Ursus arctos'),
              supertaxa = c(NA, 1, 2, 3, 3, 1, 6, 7))
internodes(x)


ropensci/taxa documentation built on Feb. 22, 2024, 5:08 p.m.