="op">(</span><span class="va">spectra</span><span class="op">)</span></span>
<span class="r-in"></span>
<span class="r-in"><span class="fu"><a href="https://rdrr.io/r/base/names.html" class="external-link">names</a></span><span class="op">(</span><span class="va">spectra</span><span class="op">)</span> <span class="op">&lt;-</span> <span class="va">type</span><span class="op">$</span><span class="va">SpectID</span> <span class="co"># spectra IDs are lost with removeBaseline()</span></span>
<span class="r-i