c_code: c_code

Description Usage Arguments Details Examples

View source: R/distribution.R

Description

return a table of country information for the requested c_code, as reported in FishBASE.org

Usage

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

Arguments

c_code

a C_Code or list of C_Codes (FishBase country code)

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

Details

e.g. http://www.fishbase.us/Country

Examples

1
2
3
4
## Not run: 
c_code(440)

## End(Not run)

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