Skip to contents

Reshapes list of chromatograms from wide to long format

Usage

reshape_chroms(
  x,
  idx,
  sample_var = "sample",
  lambdas = NULL,
  data_format,
  combine = TRUE,
  ...
)

Arguments

x

A list of chromatographic matrices in wide format.

idx

Indices of chromatograms to convert

sample_var

String with name of new column containing sample IDs.

lambdas

Wavelength(s) to include.

data_format

Whether to return data in wide or long format.

combine

Whether to combine chromatograms into a single data.frame (applicable only if data_format is TRUE).

...

Additional arguments to reshape_chrom.

Value

A list of chromatographic matrices in long format.

Author

Ethan Bass