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

Description Usage Arguments Examples

View source: R/terms.R

Description

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

Usage

1
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 crul::HttpClient

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## 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)

ritis documentation built on Feb. 2, 2021, 9:06 a.m.