Description Usage Arguments Details Value See Also Examples
View source: R/search_common.R
Search for tsn by common name
| 1 | search_common(x, from = "all", wt = "json", raw = FALSE, ...)
 | 
| x | text or taxonomic serial number (TSN) (character or numeric) | 
| from | (character) One of "all", "begin", or "end". See Details. | 
| wt | (character) One of "json" or "xml". Required. | 
| raw | (logical) Return raw JSON or XML as character string. Required.
Default:  | 
| ... | curl options passed on to crul::HttpClient | 
The from parameter:
 all - Search against the searchByCommonName API route, which
searches entire name string
 begin - Search against the searchByCommonNameBeginsWith API
route, which searches for a match at the beginning of a name string
 end - Search against the searchByCommonNameEndsWith API route,
which searches for a match at the end of a name string
a data.frame
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run: 
search_common("american bullfrog")
search_common("ferret-badger")
search_common("polar bear")
# comparison: all, begin, end
search_common("inch")
search_common("inch", from = "begin")
search_common("inch", from = "end")
# end
search_common("snake", from = "end")
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.