taxize (version 0.1.5)

tp_namedistributions: 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_namedistributions(id, key = NULL, callopts = list())

Arguments

id
the taxon identifier code
key
Your Tropicos API key; loads from .Rprofile. Or you can passin your key in this arg.
callopts
Further args passed on to httr::GET

Value

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

References

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

Examples

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

Run the code above in your browser using DataCamp Workspace