View source: R/redResolution.R
redResolution | R Documentation |
MassSpectrum
objects
This function allows to obtain a lighter version of a list of MassSpectrum
objects by decreasing their m/z resolution.
redResolution(x, by = 1)
x |
A list of |
by |
Number of times reduction ( |
This function reduces the resolution of mass spectra by eliminating a regular sequence of m/z sampling points in steps given by the argument by
. For example, specifiying by = 2
means to reduce the length and memory usage of the signal by a half approximately.
A list of MassSpectrum
objects.
# Load example data
data(spectra) # list of MassSpectra class objects
# Reduce resolution by a half
spectra.LowRes <- redResolution(spectra, by = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.