Description Usage Arguments Value
Shifts the spectra according to a specific method.
1 2 | shift_correction(dataset, method = "constant", shift.val = 0,
interp.function = "linear", ref.limits = NULL)
|
dataset |
list representing the dataset from a metabolomics experiment. |
method |
string that indicates the shifting method. It can be:
|
shift.val |
value of the shift (for constant and interpolation methods); can be a single value for all spectra, can be the string "auto", the shifts are automatically determined or a vector with the size of the number of samples with the shifts for each spectra. |
interp.function |
string that represents the interpolation function, can be "linear" or "spline". |
ref.limits |
vector with 2 elements that represents the reference limits to calculate the shifts. |
Returns the dataset with the spectras shifted.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.