View source: R/search_reptiledbr.R
reptiledbr_partial | R Documentation |
This function performs approximate (fuzzy) matching of species names from a given list of input terms against the species names in the reptile database, and indicates whether each matched species has subspecies.
reptiledbr_partial(species_names, max_dist = 2)
species_names |
Character vector. One or more scientific names or fragments to match approximately. |
max_dist |
Maximum string distance allowed for a match (default: 2). |
A tibble with matched species, taxonomic info, fuzzy match flag, and subspecies presence. The response variable may return different messages depending on the outcome of the query. Possible values include:
"Species not found"
– The specified species could not be matched in the database.
"Species has subspecies"
– The specified species exists and has one or more subspecies registered.
"No subspecies found"
– The species was found, but there are no subspecies associated with it in the database.
## Not run:
# These examples require the 'reptiledb.data' package to be installed.
reptiledbr_partial(c("Ablepharus alaicuss", "Anolis limom"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.