an class="va">ny</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/length.html" class="external-link">length</a></span><span class="op">(</span><span class="va">y</span><span class="op">)</span></span></span>
<span class="r-in"><span>  <span class="kw">if</span><span class="op">(</span><span class="va">nx</span> <span class="op">!=</span> <span class="va">ny</span><span class="op">)</span><span class="op">{</span></span></span>
<span class="r-in"><span>    <span class="co"># 