A function to access the Neotoma API and return datasets corresponding to the parameters defined by the user.
# S3 method for default
get_dataset(x, datasettype, piid, altmin, altmax, loc,
gpid, taxonids, taxonname, ageold, ageyoung, ageof, subdate)
A numeric value corresponding to the site ID.
A character string corresponding to one of the allowed dataset types in the Neotoma Database. Allowed types include: "geochronologic"
, "loss-on-ignition"
, "pollen"
, "plant macrofossils"
, "vertebrate fauna"
, "mollusks"
, and "pollen surface sample"
.
Numeric value for the Principle Investigator's ID number.
Numeric value indicating the minimum altitude for the site (can be used alone or with altmax
).
Numeric value indicating the maximum altitude for the site (can be used alone or with altmin
).
A numeric vector c(lonW, latS, lonE, latN)
representing the bounding box within which to search for sites. The convention here is to use negative values for longitudes west of Greenwich or longitudes south of the equator
A character string or numeric value, must correspond to a valid geopolitical identity in the Neotoma Database. Use get.tables('GeoPoliticalUnits') for a list of acceptable values, or link here: http://api.neotomadb.org/apdx/geopol.htm
A numeric identifier for the taxon. See get_table
and use get_tables('Taxa')
for a list of acceptable values.
A character string corresponding to a valid taxon identity in the Neotoma Database. See get_table
and use get_table('Taxa')
for a list of acceptable values.
The oldest date acceptable for the search (in years before present).
The youngest date acceptable for the search.
If a taxon ID or taxon name is defined this parameter must be set to "taxon"
, otherwise it may refer to "sample"
, in which case the age bounds are for any samples within datasets or "dataset"
if you want only datasets that are within the bounds of ageold and ageyoung.
Date of dataset submission, either YYYY-MM-DD or MM-DD-YYYY.