fuzzyMatch: A function that performs matching with a fixed tolerance, and...

Description Usage Arguments Value Examples

Description

This function accepts a query vector and a reference value to search, and return T/F vector of the same length as the query vector. For elements of query vector, it returns TRUE if the value is within the tolerance of reference value. The larger of the mzabs or ppm is used as tolerance.

Usage

1
sapply(vector, fuzzyMatch, ref, mzabs=1)

Arguments

query

A numeric vector.

ref

A numeric.

mzabs

Tolerance in m/z unit. The larger of the mzabs or ppm is used.

ppm

Tolerance in ppm. The larger of the mzabs or ppm is used.

Value

A logical vector of the same length as query vector.

Examples

1
fuzzyMatch(1:5, ref=3, ppm=10)

ohgane/ShotgunLipidomicsR documentation built on May 24, 2019, 11:55 a.m.