Learn R Programming

rgbif (version 0.4.0)

name_suggest: A quick and simple autocomplete service that returns up to 20 name usages by doing prefix matching against the scientific name. Results are ordered by relevance.

Description

A quick and simple autocomplete service that returns up to 20 name usages by doing prefix matching against the scientific name. Results are ordered by relevance.

Usage

name_suggest(q = NULL, datasetKey = NULL, rank = NULL,
    fields = NULL, start = NULL, limit = 20,
    callopts = list())

Arguments

callopts
Pass on options to httr::GET for more refined control of http calls, and error handling
limit
Number of records to return
start
Record number to start at
q
Simple search parameter. The value for this parameter can be a simple word or a phrase. Wildcards can be added to the simple word parameters only, e.g. q=*puma*
datasetKey
Filters by the checklist dataset key (a uuid, see examples)
rank
The rank given as our rank enum.
fields
Fields to return in output data.frame (simply prunes columns off)

Value

  • A data.frame with fields selected by fields arg.

References

http://www.gbif.org/developer/summary

Examples

Run this code
name_suggest(q='Puma concolor')
name_suggest(q='Puma')
name_suggest(q='Puma', limit=2)
name_suggest(q='Puma', fields=c('key','canonicalName'))
name_suggest(q='Puma', rank="GENUS")

Run the code above in your browser using DataLab