Returns an ordered factor of the ranks of a given taxonomy. It also checks if rank corresponds consistently with level.
taxonomy_ranks(taxa, parents, rank, strict = TRUE)(character) Unique taxon IDs for every possible taxon.
(character) Unique taxon IDs for the supertaxa of every possible taxon.
Root taxa should have NA in this column.
(character) The rank designation (e.g. "genus") corresponding to each observation in
taxa.
If FALSE, ranks with inconsistent levels will be allowed. Otherwise ranks
with overlapping level ranges will cause an error.