mLag <span class="op">=</span> <span class="va">emLag</span>, emRad <span class="op">=</span> <span class="cn">NA</span>, targetValue <span class="op">=</span> <span class="fl">0.05</span><span class="op">)</span><span class="op">)</span>
<span class="va">layers</span> <span class="op">&lt;-</span> <span class="fu">plyr</span><span class="fu">::</span><span class="fu"><a href="https://rdrr.io/pkg/plyr/man/llply.html" class="external-link">llply</a></span><span class="op">(</span><span class="va">RNs</span>,