spectra_format_converter {MetabolomicsBasics} | R 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)
[Package MetabolomicsBasics version 1.4.5 Index]