de>ctd2 &lt;-
    ctdTrim(ctd, "range", parameters=list(item="scan", from=5))</code> starts at scan number 5 and
continues to the end, while
<code>ctdTrim(ctd,"range", parameters=list(item="scan", from=5, to=100))</code> also starts at scan 5,
but extends only to scan 100.</p></li>
<li><p>If <code>method</code> is a function, then it must return a vector of <code><a href="https://rdrr.io/r/base/logical.html" class="external-link">logical()</a></code>
values, computed based on two arguments: <code>data</code