R/taxonomy.R
is_stem.Rd
Check if each taxon is a stem. A stem is any taxa from a root to the first taxon with multiple subtaxa.
is_stem(x)
An object with taxonomic relationships, like taxonomy objects.
Other stem functions: stems()
stems()
x <- taxonomy(c('Carnivora', 'Felidae', 'Panthera', 'Panthera leo', 'Panthera tigris'), supertaxa = c(NA, 1, 2, 3, 3)) is_stem(x) #> [1] TRUE TRUE FALSE FALSE FALSE