Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

wrap_in_boundaries

Wrap OxCal commands in Boundary commands


Description

wrap_in_boundaries takes a set of Phases or R_Dates as vectors, and returns a bit of oxcal code that can be used to feed it into OxCal. In this code the Phases and/or R_Dates are interleaved and wraped in OxCal Boundaries, the number of Boundaries is equal to the number of strings + 1. The resulting string starts with a boundary, than the OxCal strings from the vector are interleaved with Boundary commands. For details concerning the Oxcal simulation please consult the help page of Oxcal.

Usage

wrap_in_boundaries(phases_strings, boundary_names = NA)

Arguments

phases_strings

a vector containing strings of OxCal code, usually consisting of Phase or R_Date commands, but any other code strings might be used that can be interpreted by OxCal inbetween a Boundary

boundary_names

a optional vector of names for the resulting Boundaries (length of phases_strings + 1). If not given, the boundaries are named with consecutive numbers.

Value

a string containing the respective Oxcal code


oxcAAR

Interface to 'OxCal' Radiocarbon Calibration

v1.1.0
GPL-2 | file LICENSE
Authors
Hinz Martin [aut, cre], Clemens Schmid [aut], Daniel Knitter [aut], Carolin Tietze [aut]
Initial release
2021-02-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.