powered by
Check if an object is of the taxon_rank class
is_taxon_rank(x)
An object to test
x <- taxon_rank(c('species', 'species', 'phylum', 'family')) is_taxon_rank(x) is_taxon_rank(1:3)
Run the code above in your browser using DataLab