addPeaks {RMassBank} | R Documentation

## Add additional peaks to spectra

### Description

Loads a table with additional peaks to add to the MassBank spectra. Required columns are `cpdID, scan, int, mzFound, OK`.

### Usage

    addPeaks(mb, filename_or_dataframe)

### Arguments

`mb` | The `mbWorkspace` to load the peaks into.
`filename_or_dataframe` | Filename of the csv file, or name of the R dataframe containing the peaklist.

### Details

All peaks with OK=1 will be included in the spectra.

### Value

The `mbWorkspace` with loaded additional peaks.

### Author(s)

Michael Stravs

### See Also

`mbWorkflow`

### Examples

    	## Not run: addPeaks("myrun_additionalPeaks.csv")

[Package RMassBank version 2.8.0 Index]