is_taxonomy: Check if something is a taxonomy

Description Usage Arguments Examples

View source: R/taxonomy.R

Description

Check if an object is of the taxonomy class

Usage

1

Arguments

x

An object to test

Examples

1
2
3
4
5
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)

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