Description Usage Arguments Value Author(s) References Examples
Using the dataset ID, return all records associated with the data. At present, only returns the dataset in an unparsed format, not as a data table. This function will only download one dataset at a time.
1 | get_download(datasetid, verbose = TRUE)
|
datasetid |
A single numeric dataset ID or a vector
of numeric dataset IDs as returned by
|
verbose |
logical; should messages on API call be printed? |
This command returns either a 'try-error' definined by the error returned from the Neotoma API call, or a list comprising the following items:
metadataA table describing the
collection, including dataset information, PI data
compatable with get_contacts and site data
compatable with get_sites.
sample.metaDataset information for the core, primarily the age-depth model and chronology.
taxon.listThe list of taxa contained within the
dataset, unordered, including information that can be
used in get_taxa
countsThe assemblage
data for the dataset, arranged with each successive depth
in rows and the taxa as columns. All taxa are described
in taxon.list, the chronology is in
sample.data
lab.dataA data frame of laboratory data, such as exotic pollen spike, amount of sample counted, etc.
A full data object containing all the relevant assemblage information and metadata neccessary to understand a site. The data object is a list of lists and data.frames that describe an assemblage, the constituent taxa, the chronology, site and PIs who contributed the data.
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 17 18 19 20 | ## 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)
# Returns 3 records (as of 04/04/2013), get dataset for the first record, Gold Lake Bog.
GOLDKBG <- get_download(t8kyr.datasets[[1]]$DatasetID)
taxa.no <- nrow(GOLDKBG$taxon.list)
# Of the 60 taxa in the record, plot the pollen curve for Abies over time:
##pollen <- GOLDKBG$taxon.list$VariableElement == 'pollen'
pol.curve <- data.frame(age = GOLDKBG$sample.meta$Age,
Abies = GOLDKBG$counts[,'Abies'] / rowSums(GOLDKBG$counts, na.rm = TRUE))
plot(Abies * 100 ~ age, data = pol.curve, type='b',
ylab = '% Abies', xlab='Calibrated Years BP', pch=19)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.