Arguments
object
a xcmsSet
object with uncalibrated mz
calibrants
a vector or a list of vectors with reference m/z-values
method
the used calibrating-method, see below
mzppm
the relative error used for matching peaks in ppm (parts per million)
mzabs
the absolute error used for matching peaks in Da
neighbours
the number of neighbours from wich the one with the highest intensity is used (instead of the nearest)
plotres
can be set to TRUE if wanted a result-plot showing the found m/z with the distances and the regression