Learn R Programming

clam (version 2.3.9)

calBP.14C: Find the 14C age and error belonging to a cal BP age.

Description

From a given calendar ages, the calibration curve (default cc=1) is interpolated and the corresponding 14C age and error is returned.

Usage

calBP.14C(
  yr,
  cc = 1,
  cc1 = "3Col_intcal20.14C",
  cc2 = "3Col_marine20.14C",
  cc3 = "3Col_shcal20.14C",
  cc4 = "mixed.14C",
  ccdir = "",
  postbomb = FALSE,
  pb1 = "postbomb_NH1.14C",
  pb2 = "postbomb_NH2.14C",
  pb3 = "postbomb_NH3.14C",
  pb4 = "postbomb_SH1-2.14C",
  pb5 = "postbomb_SH3.14C",
  rule = 1
)

Arguments

yr

The cal BP year.

cc

calibration curve for C14 dates (1, 2 or 3).

cc1

For northern hemisphere terrestrial C14 dates.

cc2

For marine C14 dates.

cc3

For southern hemisphere C14 dates.

cc4

A custom calibration curve

ccdir

Directory where the calibration curves for C14 dates cc are allocated. By default ccdir="". Use ccdir="." to choose current working directory. Use ccdir="Curves/" to choose sub-folder Curves/.

postbomb

Which postbomb curve to use for negative 14C dates

pb1

For Northern hemisphere region 1 postbomb C-14 dates.

pb2

For Northern hemisphere region 2 postbomb C-14 dates.

pb3

For Northern hemisphere region 3 postbomb C-14 dates.

pb4

For Southern hemisphere regions 1-2 postbomb C-14 dates.

pb5

For Southern hemisphere region 3 postbomb C-14 dates.

rule

How should R's approx function deal with extrapolation. If rule=1, the default, then NAs are returned for such points and if it is 2, the value at the closest data extreme is used.

Details

Interpolation is used, and values outside the calibration curve are given as NA. For negative cal BP ages, a postbomb curve will have to be provided.

Examples

Run this code
# NOT RUN {
calBP.14C(100) 

# }

Run the code above in your browser using DataLab