Learn R Programming

rbacon (version 2.5.3)

agemodel.it: 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)

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.

Value

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

Examples

Run this code
# NOT RUN {
  Bacon(run=FALSE, coredir=tempfile())
  agedepth(age.res=50, d.res=50, d.by=10)
  lines(agemodel.it(5), col="red")
# }

Run the code above in your browser using DataLab