| process | R Documentation |
High level functionthat takes samples, blanks and spikes as input and produces a table of Pb/Pb ratios, uncertainties and error correlations as output
process(samples, blanks, spikes, cblanks, ierr = 4)
samples |
data frame with sample data. For an example, see
|
blanks |
data frame with blank data. For an example, see
|
spikes |
data frame with spike data. For an example, see
|
cblanks |
data frame with replicate blank data. For an
example, see
|
ierr |
indicates whether the analytical uncertainties are reported as:
|
a table with Pb concentrations, Pb/Pb ratios and error correlations
library(PbPbRedux)
s1 <- system.file("samples1.csv",package="PbPbRedux")
s2 <- system.file("samples2.csv",package="PbPbRedux")
b1 <- system.file("blanks1.csv",package="PbPbRedux")
b2 <- system.file("blanks2.csv",package="PbPbRedux")
sp <- system.file("spikes.csv",package="PbPbRedux")
spikes <- read.csv(sp,header=TRUE)
# example 1: all samples use the same blank:
samples <- read.csv(s1,header=TRUE)
blanks <- read.csv(b1,header=TRUE)
tab <- process(samples,blanks,spikes)
# example 2: each aliquot has its own blank:
samples <- read.csv(s2,header=TRUE)
blanks <- read.csv(b2,header=TRUE)
tab <- process(samples,blanks,spikes)
# example 3: individual blanks with shared covariance matrix:
samples <- read.csv(s2,header=TRUE)
cblanks <- read.csv(b1,header=TRUE)
blanks <- read.csv(b2,header=TRUE)
tab <- process(samples,blanks,spikes,cblanks)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.