nsr: Search the Native Species Resolver

Description Usage Arguments Details political names References Examples

View source: R/nsr.R

Description

Search the Native Species Resolver

Usage

1
nsr(species, country, stateprovince = NULL, countyparish = NULL, ...)

Arguments

species

(character) One or more species names. required.

country

(character) A country name. required.

stateprovince

(character) A state or province name

countyparish

(character) A county or parish name

...

curl options passed on to crul::HttpClient

Details

Currently, only one name is allowed per request. We loop internally over a list of length > 1, but this will still be slow due to only 1 name per request.

Note that this service can be quite slow.

political names

References

http://bien.nceas.ucsb.edu/bien/tools/nsr/nsr-ws/

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
nsr("Pinus ponderosa", country = "United States")
nsr(c("Pinus ponderosa", "Poa annua"), country = "United States")
splist <- c("Pinus ponderosa", "Poa annua", "bromus tectorum", "Ailanthus altissima")
nsr(splist, country = "United States")
nsr(splist, country = "United States", stateprovince = "California")

# curl options
nsr("Pinus ponderosa", "United States", verbose = TRUE)

## End(Not run)

originr documentation built on July 2, 2020, 2:53 a.m.