taxon | R Documentation |
Retrieve taxonomic information associated with identification codes.
taxon(x, ...)
## Default S3 method:
taxon(x, rank, aphia.id, drop = TRUE, ...)
## Default S3 method:
is.taxon(x, ..., aphia.id)
x |
Species code. |
... |
Other taxonomic groups (see examples). |
rank |
Taxonomic rank (e.g. "kingdom", "phylum", "genus", etc ...). |
aphia.id |
Aphia taxonomic identification codes. |
drop |
Logical value specifying whether to remove empty columns from the taxonomic reference table. |
taxon(default)
: Default taxon function.
is.taxon(default)
: Check taxonomic membership.
taxon
, data
taxon(10:100) # Latin genus + species names.
taxon(10:100, "phylum") # Phylum names.
taxon(10:100, "family") # Family names.
taxon(10:100, c("class", "order", "family")) # Class, order and family names.
taxon(family = "gadidae") # Extract taxonomic table for a specified rank.
#' Check if species code is part of family 'Gadidae':
is.taxon(1:100, family = "Gadidae")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.