>
<span class="r-in"><span><span class="fu"><a href="https://rdrr.io/r/base/all.equal.html" class="external-link">all.equal</a></span><span class="op">(</span><span class="va">ids1</span><span class="op">[</span><span class="va">p</span><span class="op">]</span>, <span class="va">ids2</span><span class="op">)</span></span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [1] TRUE</span>
<span class="r-in"><span><span class="co"># note base::match(ids2, ids1) also solves this problem</span></spa