Learn R Programming

ananke (version 0.1.0)

c14_sample: Sample Calibrated Ages

Description

Sample Calibrated Ages

Usage

c14_sample(object, ...)

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

Value

An numeric matrix.

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.

Author

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

Run this code
## 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)

Run the code above in your browser using DataLab