taxonomy_ranks

0th

Percentile

Get ordered ranks from taxonomy

Returns an ordered factor of the ranks of a given taxonomy. It also checks if rank corresponds consistently with level.

Keywords
internal
Usage
taxonomy_ranks(taxa, parents, rank, strict = TRUE)
Arguments
taxa
(character) Unique taxon IDs for every possible taxon.
parents
(character) Unique taxon IDs for the supertaxa of every possible taxon. Root taxa should have NA in this column.
rank
(character) The rank designation (e.g. "genus") corresponding to each observation in taxa.
strict
If FALSE, ranks with inconsistent levels will be allowed. Otherwise ranks with overlapping level ranges will cause an error.
Aliases
  • taxonomy_ranks
Documentation reproduced from package metacoder, version 0.1.2, License: GPL-2 | GPL-3

Community examples

Looks like there are no examples yet.