gni_search | R Documentation |
Uses the Global Names Index, see http://gni.globalnames.org
gni_search(
sci,
per_page = NULL,
page = NULL,
justtotal = FALSE,
parse_names = FALSE,
search_term = NULL,
...
)
sci |
(character) required. Name pattern you want to search for. WARNING: Does not work for common names. Search term may include following options (Note: can, uni, gen, sp, ssp, au, yr work only for parsed names)
|
per_page |
Number of items per one page (numbers larger than 1000 will be decreased to 1000) (default is 30). |
page |
Page number you want to see (default is 1). |
justtotal |
Return only the total results found. |
parse_names |
If |
search_term |
Deprecated, see |
... |
Curl options passed on to crul::verb-GET |
Note that you can use fuzzy searching, e.g., by attaching an asterisk to the end of a search term. See the first two examples below
data.frame of results.
Scott Chamberlain
http://gni.globalnames.org/ https://github.com/dimus/gni/wiki/api
gnr_datasources()
, gni_search()
## Not run:
gni_search(sci = "ani*")
gni_search(sci = "ama*", per_page = 3, page = 21)
gni_search(sci = "animalia", per_page = 8, page = 1)
gni_search(sci = "animalia", per_page = 8, page = 1, justtotal=TRUE)
gni_search(sci = "Cyanistes caeruleus", parse_names=TRUE)
# pass on curl options
gni_search(sci = "ani*", verbose = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.