Description Usage Arguments Value Examples
View source: R/cbk.lame.reduce.R
Convert major-element concentration as oxide to one as metal
1 | cbk.lame.reduce(pmlame)
|
pmlame |
A pmlame of element abundances (with columns of stone and rows of chem) |
A pmlame with converted columns
1 2 3 4 5 6 7 | pmlfile <- cbk.path("20081202172326.hkitagawa.pml")
message(sprintf("The pmlfile is located at |%s|.",pmlfile))
pmlame <- cbk.read.casteml(pmlfile,"ppm",category=NULL,force=TRUE)
pmlame1 <- cbk.lame.reduce(pmlame)
pmlame <- structure(list(Si = c(NA, NA, NA, 0.233, NA, NA, NA, NA), SiO2 = c(0.5195, 0.5359, 0.5341, 0.499, 0.5133, 0.5899, 0.5305, 0.5)), .Names = c("Si", "SiO2"), class = "data.frame", row.names = c("ref-cpx-klb1", "ref-cpx-sax33", "ref-cpx-sax39c", "ref-gl-bhvo2", "ref-gl-dr1a1", "ref-gl-tahiti", "ref-pl-bytownite-c", "ref_dl_blank"))
cbk.lame.reduce(pmlame)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.