="op">)</span></span>
<span><span class="fu">round2</span><span class="op">(</span><span class="va">vec</span><span class="op">)</span></span>
<span>  <span class="co">##   &gt; vec</span></span>
<span>  <span class="co">##   [1] -1.50 -2.50 -3.50 -1.51 -1.49</span></span>
<span>  <span class="co">##   &gt; round(vec)</span></span>
<span>  <span class="co">##   [1] -2 -2 -4 -2 -1</span></span>
<span>  <span class="co">##   &gt; miceadds::round2(vec)</span></span>
<span>  <span class="co">##   [1] -2 -3 -4 -