<span><span class="co"># the samc() function. We use the recipricol of the arithmetic mean for</span></span></span>
<span class="r-in"><span><span class="co"># calculating the transition matrix. Note, the input data here are matrices,</span></span></span>
<span class="r-in"><span><span class="co"># not RasterLayers.</span></span></span>
<span class="r-in"><span><span class="va">samc_obj</span> <span class="op">&lt;-</span> <span class="fu"><a href="samc.html">samc</a></span><span class="op">(</span><span cl