<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
    <div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">assign_to_grid</span><span class="op">(</span></span>
<span>  <span class="va">points</span>,</span>
<span>  coords <span class="op">=</span> <span class="cn">NULL</span>,</span>
<span>  is_lonlat <span class="op">=</span> <span class="cn">FALSE</span>,</span>
<span>  <span class="va">res</span>,</span>
<span>  jitter_grid <span class="o