This generates the csv file that is used for input to Bacon. Will be run in interactive mode if necessary parameters aren't specified. Most users will want to use runBacon for their bacon needs.
writeBacon(
L,
bacon.dir = NA,
chron.num = 1,
remove.rejected = TRUE,
overwrite = TRUE,
cc = NA,
site.name = L$dataSetName,
model.num = NA,
use.marine = NULL,
ask.reservoir = TRUE,
...
)a LiPD object
the directory where Bacon is installed on this computer.
the number of the chronData object that you'll be working in
don't write out dates that are marked as rejected
overwrite files and directories
An integer, or vector of integers corresponding to age that describes the calibration curve. You can specify here (see below) or if it's NA the code will guess based on archiveType
cc=1 IntCal20
cc=2 MarineCal20
cc=3 SHCal20
the name used for the bacon model (and directories)
chron.numModel do you want to use?
use the marine 13C curve? (yes or no, or NULL to choose)
ask about reservoir corrections
Arguments passed on to selectData
var.namestring name of the variable to extract
paleo.or.chron"paleoData" or "chronData"
paleo.or.chron.numan integer that corresponds to paleo.num or chron Data object (L$<paleo.or.chron>[[?]]) has the variable you want?
meas.table.numan integer that corresponds to paleo.num measurementTable has the variable you want?
table.typeWhat type of table do you want to select data from? ("measurement", "summary" or "ensemble")
always.chooseForce selection of the variable from a list
alt.namesA vector of strings for alternative names to search for
ens.table.numan integer that corresponds to ensembleTable you want to get the variable from?
sum.table.numan integer that corresponds to which summaryTable you want to get the variable from?
strict.searchUse a strict.search to look for the ageEnsemble and depth variables. TRUE(default) or FALSE.
L the input LiPD file with methods added to the chronModel.
Other Bacon:
getBaconDir(),
loadBaconOutput(),
runBacon(),
sampleBaconAges(),
setBaconDir()
if (FALSE) { # \dontrun{
writeBacon(L)
#Run in interactive mode
writeBacon(L,
chron.num=1,
meas.table.num = 1,
bacon.dir="~/Bacon/",
remove.rejected=TRUE,
overwrite=TRUE,
cc=NA,
site.name=L$dataSetName,
model.num=NA)
} # }