deletePeaks | R Documentation |
MassPeaks
objects
This function deletes peaks of height (intensity) below a given value in MassPeaks
objects.
deletePeaks(x, min = NULL)
x |
A list of |
min |
Lower threshold used to discard a peak. |
This functions takes a list of MassPeaks
objects and filters out peaks of height (intensity) falling below the given minimum value.
A filtered list of MassPeaks
objects.
# Load example data data(spectra) # list of MassSpectra class objects # Some pre-processing spectra <- screenSpectra(spectra)$fspectra spectra <- transformIntensity(spectra, method = "sqrt") spectra <- wavSmoothing(spectra) spectra <- removeBaseline(spectra) peaks <- detectPeaks(spectra) # Delete peaks of intensity < 30 peaks <- deletePeaks(peaks, min = 30)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.