| ns_images {natserv} | R Documentation |
NatureServe image metadata
ns_images(uid = NULL, scientificName = NULL, commonName = NULL, includeSynonyms = NULL, resolution = NULL, ITISNames = NULL, key = NULL, ...)
uid |
(character) a species UID, e.g., ELEMENT_GLOBAL.2.100925 |
scientificName |
(character) An asterisk (*) wildcarded species scientific name, e.g., 'Aquila chry*'. Name matching is case-insensitive. |
commonName |
(character) An asterisk (*) wildcarded species common name, e.g., 'g*EAGLE'. Name matching is case-insensitive. |
includeSynonyms |
(character) An optional parameter, relevant to scientific or common name queries, that indicates whether to include synonymous names in the query, as follows:
|
resolution |
(character) An optional parameter that restricts output to images at a certain resolution. The value can be of one of the following.
The omission of this parameter leads to the return of metadata for images at all available resolutions. |
ITISNames |
(character) An optional parameter, relevant to scientific or common name queries, that will indicate whether to restrict queries to ITIS names, as follows.
NOTE: This parameter is a placeholder only and will not affect processing. At present, searching by ITIS names is not possible. |
key |
(character) API key. Required. See Authentication below for more. |
... |
Curl options passed on to |
Note that the NatureServer servers apparently want Windows HTML encoding (Windows-1252), instead of UTF-8, so some accents and such may not work
a list with terms and images
Get an API key from NatureServe at https://services.natureserve.org/developer/index.jsp. You can pass your token in as an argument or store it one of two places:
your .Rprofile file with an entry like
options(NatureServeKey = "your-natureserve-key")
your .Renviron file with an entry like
NATURE_SERVE_KEY=your-natureserve-key
See Startup for information on how to create/find your
.Rrofile and .Renviron files
https://services.natureserve.org/index.jsp
## Not run: # search by uid ns_images(uid = 'ELEMENT_GLOBAL.2.100925') # search by common name and resolutio thumbnail (res <- ns_images(commonName = "*eagle", resolution = 'thumbnail')) # search "Ruby*", all common names [in any language], and highest # resolution only: (res <- ns_images(commonName = "Ruby*", includeSynonyms = 'y', resolution = 'highest')) ## End(Not run)