n><span class="co"># ways to work:</span></span></span>
<span class="r-in"><span><span class="fu">comp_acc</span><span class="op">(</span><span class="fl">.10</span>, <span class="fl">.200</span>, <span class="fl">.300</span><span class="op">)</span>  <span class="co"># =&gt; acc = 0.29</span></span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [1] 0.29</span>
<span class="r-in"><span><span class="fu">comp_acc</span><span class="op">(</span><span class="fl">.50</span>, <span class="fl">.333