This function searches marches between a given mz and a vector of mz values with certain mass tolerance and returns the index of the matched values. It is used by identification functions to find candidates of each class of lipid based on full MS information.
mzMatch(mz, mzvector, ppm)
mz value to be matched
vector of mz values
mass error tolerance
Numeric vector indicating the index of matched mz values and ppms for each one of those matches (match1, ppm1, match2, ppm2, etc.)