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

rawToPeaks(mz, I)

Arguments

mz

Vector of m/z values.

I

Matrix of peak intensity values.

Details

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

Value

A list of MassPeaks objects.