is_stem: Check if taxa are stems

Description Usage Arguments See Also Examples

View source: R/taxonomy.R

Description

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

Usage

1

Arguments

x

An object with taxonomic relationships, like taxonomy objects.

See Also

Other stem functions: stems()

Examples

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

zachary-foster/taxa2 documentation built on Jan. 1, 2021, 1:48 p.m.