depths: Extracts the depth values from a 'download' object

depthsR Documentation

Extracts the depth values from a 'download' object

Description

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

Usage

depths(obj, ...)

## Default S3 method:
depths(obj, ...)

## S3 method for class 'download'
depths(obj, ...)

## S3 method for class 'download_list'
depths(obj, ...)

Arguments

obj

A download object.

...

arguments passed to other methods.

Value

Returns a vector of depths.

Author(s)

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

References

Neotoma Project Website: http://www.neotomadb.org API Reference: http://wnapi.neotomadb.org/doc/resources/sites

Examples

## 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)

ropensci/neotoma documentation built on Dec. 6, 2022, 6:26 p.m.