createMassSpectrum-functions: Creates a MassSpectrum object.

createMassSpectrumR Documentation

Creates a MassSpectrum object.

Description

This function creates a MassSpectrum object.

Usage

createMassSpectrum(mass, intensity, metaData=list())

Arguments

mass

vector, mass or mass-to-charge ratio

intensity

vector, intensities for measured mass-to-charge ratios

metaData

list, some metadata to describe the spectrum

Value

Returns a MassSpectrum object.

Author(s)

Sebastian Gibb mail@sebastiangibb.de

See Also

MassSpectrum

Website: https://strimmerlab.github.io/software/maldiquant/

Examples

## load package
library("MALDIquant")

## create a MassSpectrum object by default constructor
s <- createMassSpectrum(mass=1:100, intensity=rnorm(100)^2,
                        metaData=list(name="example spectrum"))

## show some details
s

MALDIquant documentation built on Sept. 11, 2024, 6:15 p.m.