isMassSpectrum | R Documentation |
These functions test for a MassSpectrum
or
MassPeaks
object.
isMassSpectrum(x)
isMassPeaks(x)
x |
object to be tested. |
Returns TRUE
or FALSE
depending on whether its
argument is an MassSpectrum
or
MassPeaks
object.
Sebastian Gibb mail@sebastiangibb.de
MassPeaks
,
MassSpectrum
,
AbstractMassObject
Website: https://strimmerlab.github.io/software/maldiquant/
## 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.