| rl_sp_country {rredlist} | R Documentation |
Get species by country
rl_sp_country(country, key = NULL, parse = TRUE, ...) rl_sp_country_(country, key = NULL, ...)
country |
(character) A two-letter country code. 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_sp_country('AZ')
rl_sp_country('NZ')
# don't parse to data.frame, gives list
rl_sp_country('NZ', parse = FALSE)
# don't parse at all, get json back
rl_sp_country_('NZ')
# curl options
res <- rl_sp_country('NZ', verbose = TRUE)
## End(Not run)