Reshapes list of chromatograms from wide to long format
Source:R/reshape_chroms.R
reshape_chroms.Rd
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
orlong
format.- combine
Whether to combine chromatograms into a single
data.frame
(applicable only ifdata_format
is TRUE).- ...
Additional arguments to
reshape_chrom
.