To be able to calculate ratios per cycle, it is necessary to put the sample and reference as columns next to each other. This function transforms the data into the desired format.

spread_intensities(
  .data,
  ...,
  ids = NULL,
  our_cols = NULL,
  names_pattern = "v([4-9]{2}).(mV)",
  quiet = NULL
)

Arguments

.data

A tibble containing mass intensities per cycle.

...

These dots are for future extensions and must be empty.

ids

Identifying columns that we'll group by.

our_cols

Columns with data values that need to be reshaped. Defaults to v44.mV to v54.mV.

names_pattern

Regular expression passed to [tidyr::pivot_longer].

quiet

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

Value

A tibble with the sample and reference gasses side-by-side as s44-s49 and r44-r49.