Learn R Programming

rice (version 1.1.1)

BCADtoF14C: Find the F14C and error belonging to a BC/AD age.

Description

Given a calendar age, the calibration curve (default cc=1) is interpolated and the corresponding F14C and error are returned. BC ages are negative. In this implementation, the year 0 BC/AD does exist.

Usage

BCADtoF14C(
  x,
  cc = 1,
  postbomb = FALSE,
  zero = TRUE,
  rule = 1,
  cc.dir = NULL,
  thiscurve = NULL,
  decimals = 8
)

Value

The calibration-curve F14C belonging to the entered BC/AD age

Arguments

x

The BC/AD year.

cc

calibration curve for C14 (see caldist()).

postbomb

Whether or not to use a postbomb curve (see caldist()).

zero

Whether or not to include 0 in BC/AD years. Defaults to TRUE.

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.

cc.dir

Directory of the calibration curves. Defaults to where the package's files are stored (system.file), but can be set to, e.g., cc.dir="curves".

thiscurve

As an alternative to providing cc and/or postbomb, the data of a specific curve can be provided (3 columns: cal BP, C14 age, error).

decimals

Amount of decimals required for the F14C value. Defaults to 8.

Author

Maarten Blaauw

Details

Interpolation is used, and values outside the calibration curve are given as NA. For ages younger than AD 1950, a postbomb curve will have to be provided.

Examples

Run this code
  BCADtoF14C(100)

Run the code above in your browser using DataLab