Perform spectra corrections with 3 different methods.
data_correction(dataset, type = "background",
method = "modpolyfit", ...)
list representing the dataset from a metabolomics experiment.
string that represents the type of correction that will be applied to the spectra. The three possible types are: "background", to perform background correction; "offset", to perform offset correction; and "baseline", to perform baseline correction.
string parameter of baseline correction indicating the correction method.
additional parameters of baseline correction.
Returns the dataset with the spectra corrected.