bacon2clam: Translate Bacon .csv files to clam .csv files.

View source: R/read_write.R

bacon2clamR Documentation

Translate Bacon .csv files to clam .csv files.

Description

Reads a Bacon .csv file containing the dates, and transforms it into a clam .csv file.

Usage

bacon2clam(core, bacondir = "Bacon_runs", clamdir = "clam_runs", sep = ",")

Arguments

core

The name of the core for which a Bacon .csv.file needs to be translated into a clam .csv file

bacondir

The directory where the Bacon runs reside. Defaults to coredir="Bacon_runs".

clamdir

The directory where the clam runs reside. Defaults to coredir="clam_runs".

sep

The separator for the .csv files. Defaults to sep=",".

Details

Assumes that Bacon .csv files with 4 columns indicate 14C dates. Please make sure this is correct.

Value

A clam .csv file

Author(s)

Maarten Blaauw, J. Andres Christen

Examples

{

 tmpfl <- tempfile()
  Bacon(run=FALSE, ask=FALSE, coredir=tmpfl)
  bacon2clam("MSB2K", bacondir=tmpfl, clamdir=tmpfl)
 
}

rbacon documentation built on Sept. 30, 2024, 9:40 a.m.