Description Usage Arguments Details See Also Examples
View source: R/convertPPM_to_Mol.R
Convert the elemental concentrations (relative to an internal standard) of a data frame from ppm/ppm to Mol/Mol
1 | convertPPM_to_Mol(dat, AtomicMass, InternStand)
|
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 |
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.
convertingReplicate
.
convertMol_to_PPM
.
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.