make_peak_data: Create a peak_data object from an M/Z and Intensity vector

View source: R/make_peak_data.R

make_peak_dataR Documentation

Create a peak_data object from an M/Z and Intensity vector

Description

Generate a peak_data object. The MZ and Intensity vectors must be of the same length.

Usage

make_peak_data(MZ, Intensity)

Arguments

MZ

A vector of MZ values. Positive non-zero values only. Required.

Intensity

A vector Intensity values. Positive non-zero values only. Required.

Details

The data.table outputted by this function contains both the M/Z and Intensity vectors of the spectra.

Examples

## Not run: 

make_peak_data("MZ" = c(300, 301, 302), "Intensity" = c(50, 100, 50))


## End(Not run)

EMSL-Computing/pspecterlib documentation built on Jan. 28, 2024, 8:13 p.m.