cleanElnoise {RMassBank} | R Documentation

## Remove electronic noise

### Description

Removes known electronic noise peaks from a peak table

### Usage

    cleanElnoise(peaks, noise=getOption("RMassBank")$electronicNoise,
    		width = getOption("RMassBank")$electronicNoiseWidth)

### Arguments

`peaks` | An aggregated peak frame as described in `aggregateSpectra`. Columns `mzFound`, `dppm` and `dppmBest` are needed.
`noise` | A numeric vector of known m/z of electronic noise peaks from the instrument Defaults to the entries in the RMassBank settings.
`width` | The window for the noise peak in m/z units. Defaults to the entries in the RMassBank settings.

### Value

Extends the aggregate data frame by column `noise` (logical), which is `TRUE` if the peak is marked as noise.

### Author(s)

Michael Stravs

### See Also

`msmsWorkflow`

### Examples

    # As used in the workflow:
    ## Not run:
    	    w@aggregated <-
    		cleanElnoise(w@aggregated)

    ## End(Not run)

[Package RMassBank version 2.8.0 Index]