ns_data: NatureServe data

Description Usage Arguments Value Authentication National (N) and Subnational (S) Conservation Status Ranks Breeding Status Qualifiers References Examples

Description

NatureServe data

Usage

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

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

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

ns_data(uid = 'ELEMENT_GLOBAL.2.101998')

## End(Not run)

natserv documentation built on May 1, 2019, 6:34 p.m.