Learn R Programming

ritis (version 0.5.4)

terms: Get ITIS terms, i.e., tsn's, authors, common names, and scientific names.

Description

Get ITIS terms, i.e., tsn's, authors, common names, and scientific names.

Usage

terms(query, what = "both", wt = "json", raw = FALSE, ...)

Arguments

query
One or more common or scientific names, or partial names
what
One of both (search common and scientific names), common (search just common names), or scientific (search just scientific names)
wt
(character) One of "json" or "xml". Required.
raw
(logical) Return raw JSON or XML as character string. Required. Default: FALSE
...
Curl options passed on to GET

Examples

Run this code
## Not run: 
# # Get terms searching both common and scientific names
# terms(query='bear')
# 
# # Get terms searching just common names
# terms(query='tarweed', "common")
# 
# # Get terms searching just scientific names
# terms(query='Poa annua', "scientific")
# 
# # many at once
# terms(query=c('Poa annua', 'Pinus contorta'), "scientific")
# ## End(Not run)

Run the code above in your browser using DataLab