Description Usage Arguments Value Author(s)
Download Red List threats data from the Red List API.
1 | threats_par(x, key, query, subset, sleep_dur, num.cores, verbose)
|
x |
Vector of species names or IDs. |
key |
Character string. IUCN Red List API key - available from https://apiv3.iucnredlist.org/api/v3/token |
query |
Character string. 'name' if querying by species name; 'ID' if querying by IUCN Red List ID. |
subset |
(optional). Numeric. Specify proportion of x to run for between 0 and 1. Defaults to 1. |
sleep_dur |
(optional) Numeric. Duration of sleep between API calls in seconds. Defaults to 2 seconds. |
num.cores |
(optional) Numeric. Specify number of cores to use if running in parallel. Default is number of CPU cores available - 1. |
verbose |
(optional) Numeric. If 0 gives no progress update, if 1 prints progress bar, if 2 prints 1 row per task completed. Default is 1. |
A dataframe in long format (one row per species-threat)
Matt Lewis, matthewlewis896@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.