Learn R Programming

rfishbase (version 3.0.4)

species_names: species names

Description

returns species names given FishBase's SpecCodes

Usage

species_names(codes, server = NULL)

Arguments

codes

a vector of speccodes (e.g. column from a table)

server

can be set to either "fishbase" or "sealifebase" to switch between databases. NOTE: it is usually easier to leave this as NULL and set the source instead using the environmental variable `FISHBASE_API`, e.g. `Sys.setenv(FISHBASE_API="sealifebase")`.

Value

A character vector of species names for the SpecCodes