View source: R/rl_comp_groups.R
rl_comp_groups | R Documentation |
Returns a list of the latest assessments for a comprehensive group name.
rl_comp_groups(
name = NULL,
key = NULL,
parse = TRUE,
all = TRUE,
page = 1,
quiet = FALSE,
...
)
rl_comp_groups_(
name = NULL,
key = NULL,
all = TRUE,
page = 1,
quiet = FALSE,
...
)
name |
(character) The code of the comprehensive group to look up. If not supplied, a list of all comprehensive groups will be returned. |
key |
(character) An IUCN API token. See |
parse |
(logical) Whether to parse the output to list ( |
all |
(logical) Whether to retrieve all results at once or not. If
|
page |
(integer/numeric) Page to get if |
quiet |
(logical) Whether to suppress progress for multi-page downloads
or not. Default: |
... |
Includes the following filters that are supported by the API endpoint (refer to the API docs for more information):
Also includes the following arguments related to the wait time between request retries if a "Too Many Requests" error is received from the API (see HttpClient()$retry() for more details):
Also supports any curl options passed to the GET request via HttpClient. |
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/.
Assessments for specific sets of taxa
rl_extinct()
,
rl_extinct_wild()
,
rl_green()
,
rl_growth_forms()
## Not run:
# Get list of all comprehensive groups
rl_comp_groups()
# Get assessment summary for sea snakes
rl_comp_groups('seasnakes')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.