reshape_chroms: Reshape chromatograms Reshapes a list of chromatograms from...

View source: R/reshape_chroms.R

reshape_chromsR Documentation

Reshape chromatograms Reshapes a list of chromatograms from wide to long format.

Description

Reshape chromatograms Reshapes a list of chromatograms from wide to long format.

Usage

reshape_chroms(x, idx, sample_var = "sample", lambdas = NULL, rts = NULL)

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

Vector specifying wavelength(s) to include.

rts

Vector specifying retention times to include.

Value

A list of chromatographic matrices in long format.

Author(s)

Ethan Bass

See Also

Other utility functions: combine_peaks(), get_lambdas(), get_times(), merge_peaks(), reshape_peaktable()


ethanbass/chromatographR documentation built on April 17, 2025, 10:55 a.m.