Append reference gas delta values

append_ref_deltas(
  .data,
  .did = NULL,
  ...,
  d13C_PDB_wg = NULL,
  d18O_PDBCO2_wg = NULL,
  quiet = NULL
)

Arguments

.data

A tibble to append the delta values to.

.did

An iso file, resulting from isoreader::iso_read_dual_inlet().

...

These dots are for future extensions and must be empty.

d13C_PDB_wg

\(\delta^{13}C\) reference gas value to overwrite.

d18O_PDBCO2_wg

\(\delta^{18}O\) reference gas value to overwrite.

quiet

If TRUE, print info messages. If NULL (default) listens to options(clumpedr.quiet)

Value

Same as .data but with new columns d13C_PDB_wg and d18O_PDBCO2_wg.

Examples

dat <- isoreader::iso_get_raw_data(standards)
#> Info: aggregating raw data from 27 data file(s)
append_ref_deltas(.data = dat, .did = standards)
#> Info: collapsing cycles, calculating sample summaries.
#> Info: appending reference gas δ values from 27 data file(s)
#> # A tibble: 2,187 × 12
#>    file_id          type  cycle v44.mV v45.mV v46.mV v47.mV v48.mV v49.mV v54.mV
#>    <chr>            <chr> <int>  <dbl>  <dbl>  <dbl>  <dbl>  <dbl>  <dbl>  <dbl>
#>  1 180814_75_IAM_1… stan…     0 16647. 19675. 23072. 25664.  2124.  -268.  -270.
#>  2 180814_75_IAM_1… stan…     1 16406. 19391. 22738. 25293.  2094.  -264.  -265.
#>  3 180814_75_IAM_1… stan…     2 16153. 19091. 22387. 24899.  2062.  -259.  -261.
#>  4 180814_75_IAM_1… stan…     3 15891. 18782. 22024. 24502.  2029.  -255.  -257.
#>  5 180814_75_IAM_1… stan…     4 15631. 18476. 21665. 24100.  1997.  -250.  -252.
#>  6 180814_75_IAM_1… stan…     5 15383. 18182. 21321. 23717.  1964.  -246.  -249.
#>  7 180814_75_IAM_1… stan…     6 15135. 17889. 20978. 23336.  1934.  -241.  -244.
#>  8 180814_75_IAM_1… stan…     7 14892. 17603. 20641. 22959.  1903.  -237.  -240.
#>  9 180814_75_IAM_1… stan…     8 14656. 17323. 20313. 22600.  1873.  -234.  -236.
#> 10 180814_75_IAM_1… stan…     9 14422. 17047. 19990. 22234.  1844.  -229.  -232.
#> # ℹ 2,177 more rows
#> # ℹ 2 more variables: d13C_PDB_wg <dbl>, d18O_PDBCO2_wg <dbl>