Learn R Programming

taxize (version 0.9.100.1)

tp_dist: Return all distribution records for for a taxon name with a given id.

Description

Return all distribution records for for a taxon name with a given id.

Usage

tp_dist(id, key = NULL, ...)

Value

List of two data.frame's, one named "location", and one "reference".

Arguments

id

the taxon identifier code

key

Your Tropicos API key; See taxize-authentication for help on authentication

...

Curl options passed on to crul::HttpClient

References

http://services.tropicos.org/help?method=GetNameDistributionsXml

Examples

Run this code
if (FALSE) {
# Query using a taxon name Id
out <- tp_dist(id = 25509881)
## just location data
head(out[['location']])
## just reference data
head(out[['reference']])
}

Run the code above in your browser using DataLab