taxon: Retrieve Taxonomic Information

View source: R/taxon.R

taxonR Documentation

Retrieve Taxonomic Information

Description

Retrieve taxonomic information associated with identification codes.

Usage

taxon(x, ...)

## Default S3 method:
taxon(x, rank, aphia.id, drop = TRUE, ...)

## Default S3 method:
is.taxon(x, ..., aphia.id)

Arguments

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.

Methods (by class)

  • taxon(default): Default taxon function.

Functions

  • is.taxon(default): Check taxonomic membership.

See Also

taxon, data

Examples

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")


TobieSurette/gulf.data documentation built on Jan. 19, 2025, 7:50 p.m.