matchNumbers: matchNumbers

Description Usage Arguments Value

View source: R/Functions_utilities.R

Description

match numbers between two numeric vectors with tolerances. A match is defined by complying wit either the ppm OR the abs tolerance values.

Usage

1
matchNumbers(v1, v2, ppm = 5, abs = 0.001)

Arguments

v1, v2

numeric vectors

ppm

matching tolerance in ppm

abs

matching tolerance in absolute numbers

Value

an indexing matrix of matching values, with matching pairs in each row, column 1 is the v1 match, row 2 is the v2 match.


mjhelf/MassTools documentation built on Nov. 19, 2021, 2:38 a.m.