spectra_format_converter: spectra_format_converter.

View source: R/spectra_format_converter.R

spectra_format_converterR Documentation

spectra_format_converter.

Description

spectra_format_converter will generate a matrix with mz and int columns out of a text representation of a spectrum.

Usage

spectra_format_converter(txt = NULL, m_prec = 3, i_prec = 0)

Arguments

txt

Sample table.

m_prec

Mass precision of output spectrum.

i_prec

Intensity precision of output spectrum.

Details

See examples.

Value

Matrix with mz and int columns.

Examples

spectra_format_converter(txt = "57.1:100 58.0001:10")
spectra_format_converter(txt = "58.0001:10 57.1:100", m_prec = 4)

MetabolomicsBasics documentation built on May 29, 2024, 9:02 a.m.