 class="downlit sourceCode r">
<code class="sourceCode R"><span class="va">cutoff</span> <span class="op">&lt;-</span> <span class="fl">10</span>
<span class="va">fac</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/base/sum.html">sum</a></span><span class="op">(</span><span class="va">r</span> <span class="op">&lt;=</span> <span class="va">cutoff</span><span class="op">)</span> <span class="op">/</span> <span class="va">n</span>
<span class="va">r</span> <span class="op">&lt