ns_data {natserv}R Documentation

NatureServe data

Description

NatureServe data

Usage

ns_data(uid, key = NULL, ...)

Arguments

uid

(character) a species UID, e.g., ELEMENT_GLOBAL.2.100925

key

(character) API key. Required. See Authentication below for more.

...

Curl options passed on to GET

Value

a named list, with possible slots:

Authentication

Get an API key from NatureServe at https://services.natureserve.org/developer/index.jsp. You can pass your token in as an argument or store it one of two places:

See Startup for information on how to create/find your .Rrofile and .Renviron files

National (N) and Subnational (S) Conservation Status Ranks

Breeding Status Qualifiers

References

https://services.natureserve.org/index.jsp

Examples

## Not run: 
## single id
(res <- ns_data(uid = 'ELEMENT_GLOBAL.2.100925'))
## many ids at once
res <- ns_data(uid = c('ELEMENT_GLOBAL.2.100925', 'ELEMENT_GLOBAL.2.104470'))
res$ELEMENT_GLOBAL.2.100925
res$ELEMENT_GLOBAL.2.104470

## End(Not run)

[Package natserv version 0.1.4 Index]