convertPPM_to_Mol: convertPPM_to_Mol

Description Usage Arguments Details See Also Examples

View source: R/convertPPM_to_Mol.R

Description

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

Usage

1
  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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## 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

elementR documentation built on Sept. 2, 2020, 5:07 p.m.