Learn R Programming

ArArRedux (version 1.1)

fractionation: Compute the mass fractionation correction

Description

Compares the measured 40Ar/36Ar ratio of an air shot on a given detector with the atmospheric ratio.

Usage

fractionation(fname, detector, MS = "ARGUS-VI", PH = FALSE)

Value

an object of class logratios

Arguments

fname

a .csv file with the air shot data

detector

the name of the ion detector

MS

the type of mass spectrometer

PH

TRUE if the data were recorded in 'peak hopping' mode, FALSE if recorded in multicollector mode.

Examples

Run this code
data(Melbourne)
fd37file <- system.file("AirL2.csv",package="ArArRedux")
fd40file <- system.file("AirH1.csv",package="ArArRedux")
fract <- list(fractionation(fd37file,"L2",PH=TRUE),
              fractionation(fd40file,"H1",PH=FALSE))
if (isTRUE(all.equal(Melbourne$fract,fract))){
  print("We just re-created the fractionation correction for the Melbourne dataset")
}

Run the code above in your browser using DataLab