Learn R Programming

taxize (version 0.9.4)

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
# NOT RUN {
# all data sources
gnr_datasources()

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

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

# Output as a list
gnr_datasources(FALSE)
# }

Run the code above in your browser using DataLab