Learn R Programming

rfishbase (version 5.0.0)

species: species

Description

Provide wrapper to work with species lists.

Usage

species(
  species_list = NULL,
  fields = NULL,
  server = c("fishbase", "sealifebase"),
  version = "latest",
  db = NULL,
  ...
)

Value

a data.frame with rows for species and columns for the fields returned by the query (FishBase 'species' table)

Arguments

species_list

A vector of scientific names (each element as "genus species"). If empty, a table for all fish will be returned.

fields

subset to these columns. (recommend to omit this and handle manually)

server

Either "fishbase" or "sealifebase".

version

a version string for the database. See available_releases() for details.

db

database connection, now deprecated.

...

additional arguments, currently ignored

Details

The Species table is the heart of FishBase. This function provides a convenient way to query, tidy, and assemble data from that table given an entire list of species. For details, see: http://www.fishbase.org/manual/english/fishbasethe_species_table.htm

Species scientific names are defined according to fishbase taxonomy and nomenclature.

Examples

Run this code
if (FALSE) {

species(c("Labroides bicolor", "Bolbometopon muricatum")) 

}

Run the code above in your browser using DataLab