is_stem: Check if taxa are stems

View source: R/taxonomy.R

is_stemR Documentation

Check if taxa are stems

Description

Check if each taxon is a stem. A stem is any taxa from a root to the first taxon with multiple subtaxa.

Usage

is_stem(x)

Arguments

x

An object with taxonomic relationships, like taxonomy objects.

See Also

Other stem functions: stems()

Examples

x <- taxonomy(c('Carnivora', 'Felidae', 'Panthera', 'Panthera leo',
                'Panthera tigris'),
              supertaxa = c(NA, 1, 2, 3, 3))
is_stem(x)


taxa documentation built on April 12, 2022, 9:06 a.m.