Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

createMassSpectrum-functions

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

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

Quantitative Analysis of Mass Spectrometry Data

v1.19.3
GPL (>= 3)
Authors
Sebastian Gibb [aut, cre] (<https://orcid.org/0000-0001-7406-4443>), Korbinian Strimmer [ths] (<https://orcid.org/0000-0001-7917-2056>)
Initial release
2019-05-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.