View source: R/rl_assessment.R
rl_assessment | R Documentation |
Get the full details for a single IUCN Red List assessment
rl_assessment(id, key = NULL, parse = TRUE, ...)
rl_assessment_(id, key = NULL, ...)
id |
(integer) The unique identifier of the assessment. |
key |
(character) An IUCN API token. See |
parse |
(logical) Whether to parse the output to list ( |
... |
Curl options passed to the GET request via
|
A list unless using a function with a trailing underscore, in which case json as character string is returned.
API docs at https://api.iucnredlist.org/.
## Not run:
# Get assessment details for Fratercula arctica
ex1 <- rl_assessment(id = 166290968)
ex1$red_list_category$code
ex1$systems
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.