rawToSpectra: Create list of 'MassSpectrum' objects

View source: R/rawToSpectra.R

rawToSpectraR Documentation

Create list of MassSpectrum objects

Description

This is an auxiliary function to create a list of MassSpectrum objects from raw data.

Usage

rawToSpectra(mz, I)

Arguments

mz

Vector of m/z values.

I

Matrix of intensity values.

Details

This functions creates a list of MassSpectrum objects from a vector of common m/z values and a matrix of column vectors of intensities for a collections of mass spectra. The column names are used to label the elements of the list.

Value

A list of MassSpectrum objects.

See Also

See importSpectra.


MALDIrppa documentation built on March 29, 2022, 1:05 a.m.