couple of extra hoops.</p>
<p>A first attempt at an Rcpp version of the function might look very similar:</p>
<div class="sourceCode" id="cb73"><pre class="sourceCode cpp"><code class="sourceCode cpp"><span id="cb73-1"><a href="200_robject.html#cb73-1"></a><span class="pp">#include </span><span class="im">&lt;Rcpp.h&gt;</span></span>
<span id="cb73-2"><a href="200_robject.html#cb73-2"></a><span class="kw">using</span> <span class="kw">namespace</span> Rcpp;</span>
<span id="cb73-3"><a href="200_robject.html