species_by_ecosystem: Species list by ecosystem

Description Usage Arguments Value Examples

View source: R/distribution.R

Description

Species list by ecosystem

Usage

1
2
3
4
5
6
7
8
species_by_ecosystem(
  ecosystem,
  species_list = NULL,
  server = getOption("FISHBASE_API", "fishbase"),
  version = get_latest_release(),
  db = default_db(),
  ...
)

Arguments

ecosystem

(character) an ecosystem name

species_list

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

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

version

a version string for the database, will default to the latest release. see [get_releases()] for details.

db

the

...

unused; for backwards compatibility only

Value

a table of species ecosystems data

Examples

1
2
3
4
## Not run: 
species_by_ecosystem(ecosystem = "Arctic", server = "sealifebase")

## End(Not run)

rfishbase documentation built on Dec. 14, 2021, 5:07 p.m.