sampling function. Defaults to <code>nearest</code>, which applies the
nearest neighbor (simple sampling) resampler. Other accepted values are:
'average', 'rms', 'bilinear', 'cubic', 'cubicspline', 'lanczos', and
'mode'. See Details for a detailed explanation.</p></dd>


<dt id="arg-in-memory">in_memory<a class="anchor" aria-label="anchor" href="#arg-in-memory"></a></dt>
<dd><p>Wheter to return an 'in-memory' <code>SpatRaster</code>. If <code>FALSE</code>,
the aggregated raster will be returned as an 'in-di