">)</span></span>
<span><span class="fu">round2</span><span class="op">(</span> <span class="va">vec</span>, digits<span class="op">=</span><span class="fl">1</span><span class="op">)</span></span>
<span><span class="fu">round2</span><span class="op">(</span> <span class="op">-</span><span class="va">vec</span> <span class="op">)</span></span>
<span>  <span class="co">##   &gt; round(vec)</span></span>
<span>  <span class="co">##   [1] 8 8 9 7 8 8</span></span>
<span>  <span class="co">##   &gt; miceadds::r