calibrates the measurements for the compounds in a set of columns in a DataTable using the standardData.


  • CalibrateCompositionalData processes raw data of compositional (chemical) analyses using a set of standards of known composition to calculate concentrations of chemical elements, components, isotopes, etc.
  • The function requires a column named "Time" containing values that can be processed by AbsoluteTime (e.g. a DateObject, a number, or a date string) for each row in the measurements DataTable.
  • Multiple repeat standard measurements can be specified for the set of standards, and each individual measurement is calibrated using the linear interpolations of these standard measurements for the time of each analysis.
  • By default, a linear calibration curve of the form y=b*x is used, but a constant basis, i.e. y=a+b*x, and/or a quadratic term, i.e. y=b*x+c*x2, can be used using the options IncludeConstantBasis and IncludeQuadraticTerm.
  • Blank measurements can be specified using BlankPattern.
  • The following options can be given:
  • IncludeConstantBasisFalseSpecifies whether a constant term should be included if not explicitly given in the list of basis functions.
    IncludeQuadraticTermFalseSpecifies whether to include a quadratric term in the calibration curve.
    BlankPatternNullA string pattern that matches the row keys (IDs) of all blank measurements.
    DriftStandardNullA string pattern that matches the row keys (IDs) of drift standard measurements.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Load known concentrations of calibration standards and measurement data (more than one element, isotope or compound can be used):

Click for copyable input

Define some measurements:

Click for copyable input

Process the measurements using the calibration defined by the analyses of the standards and the known standard concentrations:

Click for copyable input