get_datasets: Obtain full datasets from the Neotoma Paleoecological...

Description Usage Arguments Value Author(s) References Examples

Description

A function to access the Neotoma API and return datasets corresponding to the parameters defined by the user.

Usage

1
2
3
  get_datasets(siteid, datasettype, piid, altmin, altmax,
    loc, gpid, taxonids, taxonname, ageold, ageyoung,
    ageof, subdate)

Arguments

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 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. Use get.tables('Taxa') for a list of acceptable values.

taxonname

A character string corresponding to a valid taxon identity in the Neotoma Database. Use get.tables('Taxa') for a list of acceptable values.

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.

Value

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:

Author(s)

Simon J. Goring simon.j.goring@gmail.com

References

Neotoma Project Website: http://www.neotomadb.org API Reference: http://api.neotomadb.org/doc/resources/contacts

Examples

 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)

neotoma documentation built on May 2, 2019, 5:55 p.m.