Get species conservation measures by taxon name, IUCN id, and region

Description

Get species conservation measures by taxon name, IUCN id, and region

Usage

1
2
3
4
rl_measures(name = NULL, id = NULL, region = NULL, key = NULL,
  parse = TRUE, ...)

rl_measures_(name = NULL, id = NULL, region = NULL, key = NULL, ...)

Arguments

name

(character) Binomial taxonomic name

id

(character) IUCN id

region

(character) Binomial taxonomic name

key

A IUCN API token

parse

(logical) Whether to parse to list (FALSE) or data.frame (TRUE). Default: TRUE

...

Curl options passed to GET

Value

A list, with the data in the result slot, unless using a function with a trailing underscore, in which case json as character string is returned.

References

API docs at http://apiv3.iucnredlist.org/api/v3/docs

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
rl_measures('Fratercula arctica')
rl_measures('Fratercula arctica', region = 'europe')
rl_measures(id = 12392)
rl_measures(id = 22694927, region = 'europe')

rl_measures_('Fratercula arctica')
rl_measures_(id = 22694927, region = 'europe')

## End(Not run)