is_taxonomy: Check if something is a taxonomy

View source: R/taxonomy.R

is_taxonomyR Documentation

Check if something is a taxonomy

Description

Check if an object is of the taxonomy class

Usage

is_taxonomy(x)

Arguments

x

An object to test

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))
is_taxonomy(x)
is_taxonomy(1:2)


ropenscilabs/taxa documentation built on Feb. 23, 2024, 6:31 p.m.