isMassSpectrum {MALDIquant} | R Documentation |
Tests for MassSpectrum or MassPeaks object.
Description
These functions test for a MassSpectrum
or
MassPeaks
object.
Usage
isMassSpectrum(x)
isMassPeaks(x)
Arguments
x |
object to be tested. |
Value
Returns TRUE
or FALSE
depending on whether its
argument is an MassSpectrum
or
MassPeaks
object.
Author(s)
Sebastian Gibb mail@sebastiangibb.de
See Also
MassPeaks
,
MassSpectrum
,
AbstractMassObject
Website: https://strimmerlab.github.io/software/maldiquant/
Examples
## load package
library("MALDIquant")
## create a MassPeaks object
peaks <- createMassPeaks(mass=1:100, intensity=1:100,
metaData=list(name="example 1"))
## test
isMassPeaks(peaks) # returns TRUE
isMassSpectrum(peaks) # returns FALSE
isMassPeaks(double()) # returns FALSE
[Package MALDIquant version 1.22.2 Index]