Calculate the concentrations of the source samples

calculate_concentrations(
  data,
  area,
  volume,
  dilution = 1,
  conc_pattern = "(\\d+)uM",
  standards = category %in% c("USGS-34", "IAEA-NO3"),
  quiet = FALSE
)

Arguments

data

(can be a grouped_by data set)

area

the area column

volume

the volume column

dilution

the dilution column (if any)

conc_pattern

the regular expression pattern to capture the concentration from the standards 'name' colum

standards

selection criterion for the standards to consider

Value

introduces the columns 'conc', 'amount' and the parameters 'p.yield' and 'p.run_size'