agemodel.it: Extract one age-model iteration

View source: R/calc.R

agemodel.itR Documentation

Extract one age-model iteration

Description

For one MCMC iteration (it), extract the corresponding age-depth model.

Usage

agemodel.it(it, set = get("info"), BCAD = set$BCAD, save.info = FALSE)

Arguments

it

The MCMC iteration of which the age-model should be calculated.

set

Detailed information of the current run, stored within this session's memory as variable info.

BCAD

The calendar scale of graphs and age output-files is in cal BP by default, but can be changed to BC/AD using BCAD=TRUE.

save.info

If TRUE, a variable called ‘info’ with relevant information about the run (e.g., core name, priors, settings, ages, output) is saved into the working directory. Note that this will overwrite any existing variable with the same name.

Value

A variable with two columns - depth and the age-depth model of a single iteration.

Author(s)

Maarten Blaauw, J. Andres Christen

Examples

## Not run: 
  Bacon(run=FALSE, coredir=tempfile())
  agedepth(age.res=50, d.res=50, d.by=10)
  lines(agemodel.it(5), col="red")

## End(Not run)

rbacon documentation built on Sept. 30, 2024, 9:40 a.m.