depths | R Documentation |
Using a download
object, return the sample depths (if available).
Using a numeric value, download
, download_list
, dataset
or dataset_list
object, open up a browser window in the users default browser. Very large objects
depths(obj, ...) ## Default S3 method: depths(obj, ...) ## S3 method for class 'download' depths(obj, ...) ## S3 method for class 'download_list' depths(obj, ...)
obj |
A |
... |
arguments passed to other methods. |
Returns a vector of depths.
Simon J. Goring simon.j.goring@gmail.com
Neotoma Project Website: http://www.neotomadb.org API Reference: http://wnapi.neotomadb.org/doc/resources/sites
## Not run: # Provide a vector of depths to generate a new age model: # The dataset id 684 is for Devils Lake, a record published by Louis Maher Jr. pollen.data <- get_download(684) pollen.chron <- get_chroncontrol(pollen.data)[[1]] age_sds <- pollen.chron$chron.control$age - focal$chron.control$age.young, get_curves <- ifelse(regexpr("Radiocarbon", pollen.chron$chron.control$control.type) > -1, 'intcal13', 'normal') new_chron <- Bchron::Bchronology(ages = pollen.chron$chron.control$age, ageSds = age_sds positions = pollen.chron$chron.control$depth, calCurves = , predictPositions = depths(pollen.data)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.