c14_sample {ananke}R Documentation

Sample Calibrated Ages

Description

Sample Calibrated Ages

Usage

c14_sample(object, ...)

## S4 method for signature 'CalibratedAges'
c14_sample(object, n = 100, calendar = get_calendar())

Arguments

object

A CalibratedAges object.

...

Currently not used.

n

An integer specifying the number of random samples.

calendar

An aion::TimeScale object specifying the target calendar (see aion::calendar()). Defaults to aion::CE(). If NULL, rata die are returned.

Value

An numeric matrix.

Author(s)

N. Frerebeau

See Also

Other radiocarbon tools: F14C, c14_calibrate(), c14_combine(), c14_curve(), c14_ensemble(), c14_plot, c14_spd(), c14_uncalibrate(), rec_plot

Examples

## Calibrate multiple dates
cal <- c14_calibrate(
  values = c(5000, 4500),
  errors = c(45, 35),
  names = c("X", "Y")
)

## Sample
spl <- c14_sample(cal, n = 100)

[Package ananke version 0.1.0 Index]