convertPPM_to_Mol: convertPPM_to_Mol

View source: R/convertPPM_to_Mol.R

convertPPM_to_MolR Documentation

convertPPM_to_Mol

Description

Convert the elemental concentrations (relative to an internal standard) of a data frame from ppm/ppm to Mol/Mol

Usage

  convertPPM_to_Mol(dat, AtomicMass, InternStand)

Arguments

dat

a data frame of elemental concentrations (relative to an internal standard) in Mol/Mol

AtomicMass

a matrix describing the atomic weight of the elements included in the session

InternStand

the name of the internal standard used in the calculation of the concentrations

Details

A matrix describing the atomic weight of the element is included in the present package (AtomicMass.csv). Note that convertPPM_to_Mol() will convert the whole data frame uploaded except the first column that is usually dedicted to the time (transect mode) or to the names of the replicate (spot mode) according to runElementR() method.

See Also

convertingReplicate. convertMol_to_PPM.

Examples

## Convert the file Example1_replicate1.csv included in the package from ppm/ppm into Mol/Mol 

# indicate the path and read the file to be converted
filePath <- system.file("Example_conversion/Example2_Replicate1.csv", package="elementR")

dat <- readData(filePath, sep = ",", dec = ".")

# indicate the path and read the file containing the atomic weight of the elements
AtomWeightPath <- system.file("AtomicMass.csv", package="elementR")

AtomicMass <- readData(AtomWeightPath, sep = ",", dec = ".")

# set the internal standard
InternStand <- "Ca43"

standard <- convertPPM_to_Mol(dat, AtomicMass, InternStand)

## Display the converted data 
standard

charlottesirot/elementR documentation built on March 8, 2024, 5:13 a.m.