Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rl_occ_country

Get country occurrence by species name or ID


Description

Get country occurrence by species name or ID

Usage

rl_occ_country(
  name = NULL,
  id = NULL,
  region = NULL,
  key = NULL,
  parse = TRUE,
  ...
)

Arguments

name

(character) A taxonomic name

id

(character) An IUCN identifier

region

(character) A region name, see rl_regions for acceptable region identifiers (use the entries in the identifier column)

key

A IUCN API token. See rl_use_iucn.

parse

(logical) Whether to parse to list (FALSE) or data.frame (TRUE). Default: TRUE

...

Curl options passed to HttpClient

Value

A list, with the data in the result slot, unless using a function with a trailing underscore, in which case json as character string is returned.

References

API docs at https://apiv3.iucnredlist.org/api/v3/docs

Examples

## Not run: 
rl_occ_country('Loxodonta africana')
rl_occ_country('Fratercula arctica', region = 'europe')
rl_occ_country(id = 12392)
rl_occ_country(id = 22694927, region = 'europe')

rl_occ_country('Fratercula arctica', parse = FALSE)
rl_occ_country_('Fratercula arctica')
rl_occ_country_('Fratercula arctica', region = 'europe')

## End(Not run)

rredlist

'IUCN' Red List Client

v0.7.0
MIT + file LICENSE
Authors
Scott Chamberlain [aut, cre], rOpenSci [fnd] (https://ropensci.org/), Maëlle Salmon [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.