Skip to contents

Sample Calibrated Ages

Usage

c14_sample(object, ...)

# S4 method for class '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.

See also

Author

N. Frerebeau

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)