taxize (version 0.1.5)

gnr_datasources: Get data sources for the Global Names Resolver.

Description

Retrieve data sources used in Global Names Index, see http://gni.globalnames.org/ for information.

Usage

gnr_datasources(todf = TRUE)

Arguments

todf
logical; Should a data.frame be returned?

Value

  • json or a data.frame

See Also

gnr_resolve

Examples

Run this code
# all data sources
gnr_datasources()

# just id's and names of sources
gnr_datasources(todf = TRUE)

# give me the id for EOL
out <- gnr_datasources(todf = TRUE)
out[out$title == "EOL", "id"]

# Fuzzy search for sources with the word zoo
out <- gnr_datasources(todf = TRUE)
out[agrep("zoo", out$title, ignore.case = TRUE), ]

Run the code above in your browser using DataLab