getMATCHES: Get template peaks that match the target peak by _m/z_ and...

Description Usage Arguments Value

View source: R/functions-alignPEAKS_helpers.R

Description

Function find all matching peaks in a template. Broad m/z and rt values are used in the search. Function is applied to every peak in a peak-group of interest.

Usage

1
getMATCHES(n, target, tmp, tmp_var, target_var)

Arguments

n

numeric representing row number in the target peak's table.

target

matrix with target peak's m/z and rt lower and higher values.

tmp

data.frame representing a template in which matching peaks are looked for.

tmp_var

character indicating the column name for peak grouping information in the template.

target_var

character indicating the column name for peak grouping information in the target peak's matrix.

Value

Function returns a data.frame with matching template's peaks.


lauzikaite/massFlowR documentation built on April 29, 2020, 9:45 a.m.