Description Usage Arguments Value Author(s) References Examples
A function to access the Neotoma API and return datasets corresponding to the parameters defined by the user.
1 2 3 | get_datasets(siteid, datasettype, piid, altmin, altmax,
loc, gpid, taxonids, taxonname, ageold, ageyoung,
ageof, subdate)
|
siteid |
A numeric value corresponding to the site ID. |
datasettype |
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'. |
piid |
Numeric value for the Principle Investigator's ID number. |
altmin |
Numeric value indicating the minimum altitude for the site (can be used alone or with altmax). |
altmax |
Numeric value indicating the maximum altitude for the site (can be used alone or with altmin). |
loc |
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 Grewnwich or longitudes south of the equator |
gpid |
A character string, must correspond to a
valid geopolitical identity in the Neotoma Database. Use
|
taxonids |
A numeric identifier for the taxon. Use
|
taxonname |
A character string corresponding to a
valid taxon identity in the Neotoma Database. Use
|
ageold |
The oldest date acceptable for the search (in years before present). |
ageyoung |
The youngest date acceptable for the search. |
ageof |
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. |
subdate |
Date of dataset submission, either YYYY-MM-DD or MM-DD-YYYY. |
More details on the use of these parameters can be obtained from http://api.neotomadb.org/doc/resources/datasets.
A list, with each item corresponding to an individual record. Each list item (each dataset record) includes the following components:
DatasetIDUnique database record identifier for the dataset.
DatasetNameName of the dataset; not commonly used.
CollUnitHandleCode name of the Collection Unit with which the dataset is associated. This code may be up to 10 characters. Data are frequently distributed by Collection Unit, and the Handle is used for file names.
CollUnitIDUnique database record identifier for the collection unit.
CollTypeThe collection type. Types include cores, sections, excavations, and animal middens.
DatasetTypeThe dataset type, such as: geochronologic, loss-on-ignition, pollen, plant macrofossils, vertebrate fauna, etc.
AgeOldestThe oldest of all sample ages (in calendar years before present) in the dataset.
AgeYoungestThe youngest of all sample ages (in calendar years before present) in the dataset.
SubDatesAn array of objects that describe dataset submission events. If multiple submissions occured then this is a table.
DatasetPIsAn array of objects that describe Principal Investigators associated with a dataset.
SiteAn object describing the site where the dataset samples were taken.
Simon J. Goring simon.j.goring@gmail.com
Neotoma Project Website: http://www.neotomadb.org API Reference: http://api.neotomadb.org/doc/resources/contacts
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
# Search for sites with "Thuja" pollen that are older than 8kyr BP and
# that are on the west coast of North America:
t8kyr.datasets <- get_datasets(taxonname='Thuja*', loc=c(-150, 20, -100, 60), ageyoung = 8000)
# Search for vertebrate fossils in Canada (gpid: 756) within the last 2kyr.
gpids <- get_table(table.name='GeoPoliticalUnits')
canID <- gpids[which(gpids$GeoPoliticalName == 'Canada'),1]
v2kyr.datasets <- get_datasets(datasettype='vertebrate fauna', gpid=canID, ageold = 2000)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.