rl_occ_country {rredlist} | R Documentation |
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 |
key |
A IUCN API token. See |
parse |
(logical) Whether to parse to list ( |
... |
Curl options passed to |
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)
[Package rredlist version 0.7.1 Index]