Learn R Programming

oxcAAR (version 1.1.2)

R_Simulate: Returns the Oxcal code for the simulation of 14C dates

Description

R_Simulate takes names, calendar dates and standard deviation for those dates as vectors, and returns a bit of oxcal code that can be used to feed it into oxcal. For details concerning the Oxcal simulation please consult the help page of Oxcal.

Usage

R_Simulate(c_dates, stds, names = seq_along(c_dates))

Value

a string containing the respective Oxcal code

Arguments

c_dates

a vector containing the calendar dates that should be simulated

stds

a vector containing the standard deviation that should be simulated (length 1 or same length as c_dates)

names

a vector of names for the resulting simulated dates