Read and Parse OxCal Output
Usage
oxcal_parse(path)
# S3 method for class 'OxCalOutput'
oxcal_parse(path)
# S3 method for class 'character'
oxcal_parse(path)Arguments
- path
- A - characterstring naming a JavaScript file which the data are to be read from (or a- listreturned by- oxcal_execute()).
Value
A list with class OxCalResults containing the following elements:
See also
Other OxCal tools:
oxcal_calibrate(),
oxcal_configure(),
oxcal_execute(),
oxcal_install()
Examples
if (FALSE) { # \dontrun{
## Download OxCal
oxcal_configure()
## Custom script
scr <- 'Plot()
 {
  Sequence("Sequence1")
  {
   Boundary("Begin");
   Phase("Phase1")
   {
    R_Date("Lab-1",5000,25);
    R_Date("Lab-2",4900,37);
   };
   Boundary("Between");
   Phase("Phase2")
   {
    R_Date("Lab-3",4800,43);
   };
   Boundary("End");
  };
 };'
out <- oxcal_execute(scr)
res <- oxcal_parse(out)
as.data.frame(res)
} # }