Learn R Programming

clam (version 2.6.2)

deptime.depth: Calculates *for each iteration* the slope of a straight curve between depths just above and below the desired point.

Description

Calculates *for each iteration* the slope of a straight curve between depths above and below the desired point. Requires sufficiently dense density of depths, e.g. yrsteps=1.

Usage

deptime.depth(depth, yrcm = TRUE, prob = 0.95)

Value

Returns (invisibly) the modelled deposition times for a specific depths, a histogram and confidence ranges.

Arguments

depth

The depth for which accumulation rate estimates should be calculated.

yrcm

Calculate in years per cm, or alternatively in cm per yr.

prob

Probability level at which to calculate the ranges.

Author

Maarten Blaauw

Details

To calculate sedimentation times at a depth. Before running this, run your core in clam and store the data, so, make sure to set storedat=TRUE. Renamed from previous accrate.depth function to avoid confusion with accrate.depth function of rbacon.

Examples

Run this code
  base_temp_dir <- tempdir()
  clam_dir <- file.path(base_temp_dir, "clam_runs")
  dir.create(clam_dir, recursive = TRUE, showWarnings = FALSE)
  clam(coredir=clam_dir, storedat=TRUE)
  dp <- deptime.depth(20)
  summary(dp)
  deptime.depth(20, FALSE) # to calculate accumulation rates in cm/yr

Run the code above in your browser using DataLab