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 | get_dataset(x, datasettype, piid, altmin, altmax, loc, gpid, taxonids,
taxonname, ageold, ageyoung, ageof, subdate)
|
x |
An optional value, either a |
datasettype |
A character string corresponding to one of the allowed dataset types in the Neotoma Database. Allowed types include: |
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 |
Numeric value indicating the maximum altitude for the site (can be used alone or with |
loc |
A numeric vector |
gpid |
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 |
taxonids |
A numeric identifier for the taxon. See |
taxonname |
A character string corresponding to a valid taxon identity in the Neotoma Database. See |
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 |
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 of class 'dataset_list', with each item corresponding to an individual record. Searches that return no items will result in a NULL value being returned. Otherwise each list item (each dataset record) includes the following components:
|
Unique database record identifier for the dataset. |
|
Name of the dataset; not commonly used. |
|
Code 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. |
|
Unique database record identifier for the collection unit. |
|
The collection type. Types include cores, sections, excavations, and animal middens. |
|
The dataset type, such as: geochronologic, loss-on-ignition, pollen, plant macrofossils, vertebrate fauna, etc. |
|
The oldest of all sample ages (in calendar years before present) in the dataset. |
|
The youngest of all sample ages (in calendar years before present) in the dataset. |
|
An array of objects that describe dataset submission events. If multiple submissions occurred then this is a table. |
|
An array of objects that describe Principal Investigators associated with a dataset. |
|
An 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 13 14 15 16 | ## 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_dataset(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_dataset(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.