powered by
Performs smoothing interpolation according to a specific method.
smoothing_interpolation(dataset, method = "bin", reducing.factor = 2, x.axis = NULL, p.order = 3, window = 11, deriv = 0)
list representing the dataset from a metabolomics experiment.
string specifying the smoothing method. The three possible methods are: "bin", "loess" and "savitzky.golay".
numeric value indicating the reducing factor for bin method.
numeric vector representing the new x-axis for loess method.
numeric value representing the polynomial order for savitzky-golay method.
numeric value indicating the size of the window for savitzky-golay method. (must be an odd number)
numeric value indicating the differentiation order for savitzky-golay method.
Returns the dataset with the spectra smoothed.
# NOT RUN { ## Example of smoothing the spectra from dataset data(cassavaPPD) dataset.smoothed = smoothing_interpolation(cassavaPPD, method = "bin", reducing.factor = 2) # }
Run the code above in your browser using DataLab