Description Usage Arguments Value Author(s) References Examples
Using the dataset ID, return all geochronological data associated with the dataID. 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_geochron(x, verbose = TRUE)
|
x |
A numeric dataset ID or a vector of numeric dataset IDs, or an object of class of class |
verbose |
logical; should messages on API call be printed? |
This command returns either an object of class "try-error"
' (see try
) defined by the error returned
from the Neotoma API call, or a geochronologic
object, which is a list with two components, a dataset
and a geochronology table, a data.frame
with the following components:
|
A unique identifier for the geochronological unit. |
|
String. The age type, one of calendar years, radiocarbon years, etc. |
|
Dated age of the material. |
|
The older error limit of the age value. Commonly 1 standard deviation. |
|
The younger error limit of the age value. |
|
The measured or assumed delta13C value for radiocarbon dates, if provided. |
|
A table describing the collection, including dataset information, PI data compatible with |
|
Text string, type of geochronological analysis, i.e., Radiocarbon dating, luminesence. |
|
Text string |
|
Boolean, does the dated material return an "infinite" date? |
A full data object containing all the relevant geochronological data available for a dataset.
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 21 22 23 24 25 26 27 28 | ## Not run:
# Search for the sites around Marion Lake, BC. I want to find sites within
# about 1km.
marion <- get_site(sitename = "Marion Lake*")
marion_close <- get_closest(marion, n = 10, buffer = 1)
# Returns 116 records (as of 13/07/2015). These are the pollen records though,
# we want the sites:
geochron.records <- get_geochron(marion_close)
# We want to extract all the radiocarbon ages from the records:
get_ages <- function(x){
any.ages <- try(x[[2]]$age[x[[2]]$age.type == 'Radiocarbon years BP'])
if(class(any.ages) == 'try-error') output <- NA
if(!class(any.ages) == 'try-error') output <- unlist(any.ages)
output
}
radio.chron <- unlist(sapply(geochron.records, get_ages))
hist(radio.chron[radio.chron<40000], breaks=seq(0, 25000, by = 1000),
main = 'Radiocarbon dates for Pseudotsuga records',
xlab = 'Radiocarbon date (14C years before 1950)')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.