Skip to contents

Match Features by m/z and Retention Time

Match Features by m/z and Retention Time

Usage

# S3 method for class 'data.frame'
match_mz_rt(
  data1,
  data2,
  mz.tol,
  rt.tol = 30,
  rt.error.type = c("relative", "abs")
)

# S3 method for class 'matrix'
match_mz_rt(
  data1,
  data2,
  mz.tol,
  rt.tol = 30,
  rt.error.type = c("relative", "abs")
)

match_mz_rt(
  data1,
  data2,
  mz.tol = 10,
  rt.tol = 30,
  rt.error.type = c("abs", "relative")
)

Arguments

data1

A mass_dataset object.

data2

A second mass_dataset object or compatible structure.

mz.tol

Numeric m/z tolerance for matching.

rt.tol

Numeric retention time tolerance for matching.

rt.error.type

Retention time error type.

Value

A data frame of candidate matches, or NULL if no matches are found.