Description Usage Arguments Value See Also Examples
View source: R/cbk.lame.merge.error.R
Merge meanlame and errorlame to pmlame interleavely
1 | cbk.lame.merge.error(meanlame, errorlame, verbose = FALSE)
|
meanlame |
A pmlame of mean values with colname of chem ('Li7'). |
errorlame |
An errorlame, that is pmlame of error values with colname of chem ('Li7' instead of 'Li7_error'). |
verbose |
Output debug info (default: FALSE). |
A proper pmlame with both mean and error columns.
1 2 3 4 5 6 7 8 | pmlfile <- cbk.path("20130528105235-594267.pml")
message(sprintf("The pmlfile is located at |%s|.",pmlfile))
pmlame <- cbk.read.casteml(pmlfile)
pmlame0 <- pmlame[,!grepl("_error",colnames(pmlame))]
pmlame1 <- pmlame0[,setdiff(colnames(pmlame0), c("sample_id","image_id"))]
meanlame1 <- cbk.lame.colMeans(pmlame1)
errorlame1 <- cbk.lame.colSds(pmlame1)
pmlame2 <- cbk.lame.merge.error(meanlame1,errorlame1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.