keep_one: keep_one

Description Usage Arguments Value Author(s) Examples

View source: R/mz_rt_match.R

Description

Remove multiple vs. one in result from mz_rt_match function.

Usage

1
keep_one(result, according.to = c("mz.error", "rt.error"))

Arguments

result

result from mz_rt_match function.

according.to

According to mz error or rt error?

Value

Return a result without multiple vs. one.

Author(s)

Xiaotao Shen shenxt1990@outlook.com

Examples

1
2
3
4
5
data1 <- data.frame(mz = 1:10, rt = 1:10)
data2 <- data.frame(mz = 1:10, rt = 1:10)
result <- mz_rt_match(data1, data2, mz.tol = 10)

keep_one(result)

tidymass/tinytools documentation built on Jan. 2, 2022, 5:18 p.m.