herpSpecies | R Documentation |
Retrieves a list of reptile species from The Reptile Database (RDB) based on a search URL, and optionally returns detailed taxonomic information for each species. This function can also save progress to disk during sampling and extract species-specific URLs for further use.
herpSpecies(url,
showProgress = TRUE,
dataList = NULL,
taxonomicInfo=FALSE,
fullHigher=FALSE,
getLink=FALSE,
cores = max(1, parallel::detectCores() - 1),
checkpoint = NULL,
backup_file = NULL
)
url |
Character string. A search URL generated via an advanced search on the RDB website or with |
showProgress |
Logical. If |
dataList |
Optional. A data frame with columns |
taxonomicInfo |
Logical. If |
fullHigher |
Logical. If |
getLink |
Logical. If |
cores |
Integer. Number of CPU cores to use for parallel processing. Default is one less than the number of available cores. |
checkpoint |
Optional. Integer specifying the number of species to process before saving a temporary backup. Backup is only saved if |
backup_file |
Optional. Character string specifying the path to an |
If taxonomicInfo = FALSE
(default), returns a character vector of species names.
If taxonomicInfo = TRUE
, returns a data frame with columns:
order
, suborder
(if available), family
, genus
, species
, author
, and year
.
If fullHigher = TRUE
, includes an additional column with the full higher taxa classification.
If getLink = TRUE
, includes a column with the URL for each species’ page on RDB.
If checkpoint
is used, progress will only be saved when cores = 1
. This prevents potential write conflicts in parallel mode.
herpAdvancedSearch
, herpSynonyms
, herpSearch
boa <- herpSpecies(herpAdvancedSearch(genus = "Boa"),
taxonomicInfo = TRUE,
cores = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.