Learn R Programming

Bchron (version 3.2)

Bchronload: Command-line based loading of Bchron input files for a Bchron run.

Description

A quick command line function to create a Bchron data object from various inputs. Note that all text strings must be given in inverted commas (apart from TRUE/FALSE).

Usage

Bchronload(name, fullname = NULL, path = NULL, outdepths=NULL,calibname = "IntCal09", extractdate = -0.05, check = FALSE, full = FALSE)

Arguments

name
A text string containing the name of the .dat file used.
fullname
A text string giving the full name of the core (used for plotting purposes). Defaults to name.
path
The path to the Bchron directory. Defaults to c:/Bchron (windows) or ~/Bchron (unix).
outdepths
A collection of depths at which chronological ages will be calculated. Default is top dated depth to bottom dated depth, length 200.
calibname
The name of the calibratiion curve .bch file used. Defaults to the Northern Hemisphere 2009 internationally agreed calibration curve.
extractdate
The extracted date of the core in thousands of years before present. Defaults to the year 2000 (=-0.05 k cal years BP).
check
If true, performs Bchronconvergecheck on the given data files.
full
If true, also loads in chronologies, calibrated dates, etc, for further analysis. This may take a bit of extra time as some of these files are large.

Value

  • Returns a list object with the following components:
  • nameThe name of the .dat file
  • fullnameThe full name of the core
  • versionThe version number of Bchron
  • pathThe path to the Bchron directory
  • calibcurvefileThe path to the calibration curve
  • c14fileThe path to the .14c file of the calibration curve
  • inputfileThe path to the input file of dates and depths
  • calibdatesfileThe path to the file of calibrated radiocarbon date samples
  • calibrangesfileThe path to the file of calibrated radiocarbon date ranges
  • parsfileThe path to the file of Bchron parameter output
  • chronsfileThe path to the file containing the sample chronologies
  • outlierfileThe path to the file containing the outlier date sumaries
  • rangesfileThe path to the file containing the chronology summary ranges
  • extractdateThe date of core extraction
  • bigcalsizeThe length of the .bch calibration curve
  • lowcalThe youngest age of the given calibration curve
  • highcalThe eldest age of the given calibration curve
  • inputThe table of input data (dates, depths, thicknesses etc)
  • outdepthsA collection of depths at which the chronological age is required
  • calibdates(if full=TRUE, a matrix of sample calibrated dates
  • calibrangesif full=TRUE, a matrix of calibrated date ranges
  • parsif full=TRUE, a matrix of Bchron parameter output
  • chronsif full=TRUE, a matrix of sample chronologies
  • outlierif full=TRUE, a matrix of outlier date summaries
  • rangesif full=TRUE, a matrix of chronology summaries

Details

Useful for batch processing of calibration runs, this function allows the user to load in and create a Bchrondata object which can then be used in all the other Bchron functions.

References

Haslett and Parnell (2008, JRSSC, 57:399-418) and Parnell et al (2008, QSR, 27(19-20):1872-1885)

See Also

See Bchronmenu for examples.

Examples

Run this code
# For the example data, the following should run (when the files are placed in the default directory in windows; c:/Bchron)
# myrun <- Bchronload("Glendalough")
# Bchroncalibrate(myrun)
# BchronMCMC(myrun)
# Bchronpredict(myrun)
# Bchronplot(myrun)

Run the code above in your browser using DataLab