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, na.rm = TRUE)
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.
boolean value indicating if NA
s should be removed. Defaults to TRUE.
Returns the dataset with the spectra smoothed.