Perform spectra corrections with 3 different methods.
Usage
data_correction(dataset, type = "background",
method = "modpolyfit", ...)
Arguments
dataset
list representing the dataset from a metabolomics experiment.
type
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.
method
string parameter of baseline correction indicating the correction method.
# NOT RUN {## Example of data correction using background correction data(cassavaPPD)
dataset.corrected = data_correction(cassavaPPD, type = "background")
# }