createSpec | R Documentation |
MassSpectrum
from a POS
or ATOcreateSpec
generates a
MassSpectrum
object with a
specified resolution from an ATO or POS data frame (like that created by
readPOS
).
createSpec(pos, res = 0.05, clip = NULL)
pos |
A POS or ATO data frame. |
res |
numeric. The bin width of the mass spectrum. |
clip |
numeric of length two. The minimum and maximum mass values to be
included in the mass spectrum. If |
The input POS or ATO is binned by mass values; the res
parameter sets
the width of the mass bins used in hist
to create the
input to the createMassSpectrum
call, and also acts
as a tolerance around the spectrum minimum and maximum mass. The minimum of
the mass value is zero unless clip
is set.
A MassSpectrum
from the
mass
field of the POS or ATO, with the resolution set by res
.
readPOS
, readATO
,
MassSpectrum
Other APT data transformation functions:
createDet()
,
createSpat()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.