findDuplicates {metabCombiner} | R Documentation

## Find and Remove Duplicate Features

### Description

Pairs of features with nearly identical m/z and retention time values are removed in this step.

### Usage

    findDuplicates(data, missing, counts, duplicate)

### Arguments

`data` | Constructed metabolomics data frame.
`missing` | Numeric vector. Percent missingness for each feature.
`counts` | Numeric vector. Central measure for each feature.
`duplicate` | Ordered numeric pair (m/z, rt) tolerance parameters for duplicate feature search.

### Details

Pairs of features are deemed duplicates if pairwise differences in m/z & rt fall within tolerances defined by the `duplicate` argument. If a pair of duplicate features is found, one member is removed. The determination of which feature to remove is first by percent missingness, followed by central abundance measure (median or mean). If the features have equal missingness and abundance, then row order determines the feature to be removed.

### Value

integer indices of removable duplicate features

[Package metabCombiner version 1.2.2 Index]