an><span class="op">)</span></span>
<span class="r-in"><span class="va">peaks</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/pkg/MALDIquant/man/detectPeaks-methods.html" class="external-link">detectPeaks</a></span><span class="op">(</span><span class="va">spectra</span><span class="op">)</span></span>
<span class="r-in"></span>
<span class="r-in"><span class="co"># Delete peaks of intensity &lt; 30</span></span>
<span class="r-in"></span>
<span class="r-in"><span class="va">p