View source: R/make_peak_data.R
make_peak_data | R Documentation |
Generate a peak_data object. The MZ and Intensity vectors must be of the same length.
make_peak_data(MZ, Intensity)
MZ |
A vector of MZ values. Positive non-zero values only. Required. |
Intensity |
A vector Intensity values. Positive non-zero values only. Required. |
The data.table outputted by this function contains both the M/Z and Intensity vectors of the spectra.
## Not run:
make_peak_data("MZ" = c(300, 301, 302), "Intensity" = c(50, 100, 50))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.