wrap_in_boundaries {oxcAAR}R Documentation

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 wrapped 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


[Package oxcAAR version 1.1.1 Index]