Internal function. This function removes peaks with their mass values (m/z values) outside a given mass range.
This function is used in process_monospectra.
filtermass(spectra, mass.range)Mass Spectra (A MALDIquant MassSpectrum (S4) object). An output of importMzXml.
Mass (m/z) range (a vector). For exmaple, c(1000,2200).
A list of filtered mass spectra (MALDIquant MassSpectrum (S4) objects) which contains mass, intensity, and metaData.