vertsearch | R Documentation |
Returns any record containing your target text in any field of the record.
vertsearch(
taxon = NULL,
...,
limit = 1000,
compact = TRUE,
messages = TRUE,
only_dwc = TRUE,
callopts = list()
)
taxon |
(character) Taxonomic identifier or other text to search for |
... |
(character) Additional search terms. These must be unnamed |
limit |
(numeric) Limit on the number of records returned. If >1000
results, we use a cursor internally, but you should still get up to the
results you asked for. See also
|
compact |
Return a compact data frame (boolean) |
messages |
Print progress and information messages. Default: TRUE |
only_dwc |
(logical) whether or not to return only Darwin Core term
fields. Default: |
callopts |
curl options in a list passed on to
|
vertsearch
performs a nonspecific search for your
input within every record and field of the VertNet archives. For a more
specific search, try searchbyterm
A data frame of search results
https://github.com/VertNet/webapp/wiki/The-API-search-function
## Not run:
out <- vertsearch(taxon = "aves", "california", limit=3)
# Limit the number of records returned (under 1000)
out <- vertsearch("(kansas state OR KSU)", limit = 200)
# Use bigsearch() to retrieve >1000 records
# Find multiple species using searchbyterm():
# a) returns a specific result
out <- searchbyterm(genus = "mustela", species = "(nivalis OR erminea)")
vertmap(out)
# b) returns a non-specific result
out <- vertsearch(taxon = "(mustela nivalis OR mustela erminea)")
vertmap(out)
# c) returns a non-specific result
splist <- c("mustela nivalis", "mustela erminea")
out <- lapply(splist, function(x) vertsearch(taxon = x, lim = 500))
out <- dplyr::bind_rows(lapply(out, "[[", "data"))
vertmap(out)
# curl options
vertsearch(taxon = "Aves", limit = 10, callopts = list(verbose = TRUE))
# vertsearch(taxon = "Aves", limit = 10, callopts = list(timeout_ms = 10))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.