getData: Get data frame with all present peak data

Description Usage Arguments Value Author(s)

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

1
2
## 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


RMassBank documentation built on Nov. 8, 2020, 6:06 p.m.