getData {RMassBank} | R Documentation

## Get data frame with all present peak data

### Description

Returns a data frame with columns for all non-empty slots in a `RmbSpectrum2` object. Note that `MSnbase::Spectrum` has a method `as.data.frame`, however that one will return only mz, intensity. This function is kept separate to ensure downwards compatibility since it returns more columns than MSnbase `as.data.frame`.

### Usage

    ## S4 method for signature 'RmbSpectrum2'
    getData(s)

### Arguments

`s` | The `RmbSpectrum2` object to extract data from.

### Value

A data frame with columns for every set slot.

### Author(s)

stravsmi

[Package RMassBank version 2.14.1 Index]