Get an ID for a IUCN listed taxon

Share:

Description

Get an ID for a IUCN listed taxon

Usage

1
iucn_id(sciname, ...)

Arguments

sciname

character; Scientific name. Should be cleand and in the format <Genus> <Species>. One or more.

...

Curl options passed on to GET

Value

A named list (names are input taxa names) of one or more IUCN IDs. Taxa that aren't found are silently dropped.

Author(s)

Scott Chamberlain, myrmecocystus@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Not run: 
iucn_id("Branta canadensis")
iucn_id("Branta bernicla")
iucn_id("Panthera uncia")
iucn_id("Lynx lynx")

# many names
iucn_id(c("Panthera uncia", "Lynx lynx"))

# many names, some not found
iucn_id(c("Panthera uncia", "Lynx lynx", "foo bar", "hello world"))

# a name not found
iucn_id("Foo bar")

# curl options
library("httr")
iucn_id("Branta canadensis", config = verbose())

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.