| rl_occ_country {rredlist} | R Documentation |
Get country occurrence by species name or ID
rl_occ_country(name = NULL, id = NULL, region = NULL, key = NULL, parse = TRUE, ...)
name |
(character) A taxonomic name |
id |
(character) An IUCN identifier |
region |
(character) A region name, see |
key |
A IUCN API token. See http://apiv3.iucnredlist.org/api/v3/token to get a token |
parse |
(logical) Whether to parse to list ( |
... |
Curl options passed to |
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.
API docs at http://apiv3.iucnredlist.org/api/v3/docs
## 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)