Learn R Programming

originr (version 0.1.0)

nsr: Search the Native Species Resolver

Description

Search the Native Species Resolver

Usage

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
...
Further args passed on to GET

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.

References

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

Examples

Run this code
## Not run: 
# nsr("Pinus ponderosa", "United States")
# nsr(c("Pinus ponderosa", "Poa annua"), "United States")
# splist <- c("Pinus ponderosa", "Poa annua", "bromus tectorum", "Ailanthus altissima")
# nsr(splist, country = "United States")
# 
# # curl options
# library("httr")
# nsr("Pinus ponderosa", "United States", config = verbose())
# ## End(Not run)

Run the code above in your browser using DataLab