createMassSpectrum {MALDIquant} | R Documentation |
Creates a MassSpectrum object.
Description
This function creates a MassSpectrum
object.
Usage
createMassSpectrum(mass, intensity, metaData=list())
Arguments
mass |
|
intensity |
|
metaData |
|
Value
Returns a MassSpectrum
object.
Author(s)
Sebastian Gibb mail@sebastiangibb.de
See Also
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
[Package MALDIquant version 1.22.2 Index]