avg_sd_d18O_standards: avg_sd_d18O_standards: function to find d18O/16O averages and...

View source: R/MLMSfunctions.R

avg_sd_d18O_standardsR Documentation

avg_sd_d18O_standards: function to find d18O/16O averages and standard deviations for each set of files represented in input list

Description

avg_sd_d18O_standards: function to find d18O/16O averages and standard deviations for each set of files represented in input list

Usage

avg_sd_d18O_standards(
  allStandards_d18O.list,
  standNames = c("L1", "H1", "LW"),
  standAcceptedVals.vec = c(-8.55, 4.85, -3.85),
  accStandRatioSD = c(0.2, 0.2, 0.2)
)

Arguments

allStandards_d18O.list

list built from output of d18O_samples_list(), which retrieves sample peaks and d18O/16O data from specified files

standNames

character vector containing the names of the standards

standAcceptedVals.vec

numeric vector containing the accepted values of the standards

accStandRatioSD

numeric vector containing the accepted standard deviation values for each of the standards (in the same order as names in standNames)

Value

list of length 3 with the following elements: [1]: dataframes of d18O/16O averages and standard deviations for each set of files from input [2]: accepted and measured d18O/16O dataframe [3]: acceptable and calculated standard deviations for d18O/16O

Examples

Usage Example
L1_d18O.list<-d18O_samples_list(L1fileNames.vec)
H1_d18O.list<-d18O_samples_list(H1fileNames.vec)
LW_d18O.list<-d18O_samples_list(LWfileNames.vec)
allStand_d18O.list<-list()
allStand_d18O.list[[1]]<-L1_d18O.list
allStand_d18O.list[[2]]<-H1_d18O.list
allStand_d18O.list[[3]]<-LW_d18O.list
AvgSD_d18O<-avg_sd_d18O_standards(allStand_d18O.list)

lilyacb/MLMS documentation built on July 21, 2023, 4:12 a.m.