Learn R Programming

RMassBank (version 2.0.0)

getData: 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

"getData"(s)

Arguments

s
The RmbSpectrum2 object to extract data from.

Value

A data frame with columns for every set slot.