View source: R/rl_sp_country.R
| rl_sp_country | 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   | 
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 https://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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.