 a record to itself. The option <code>deduplication</code> of the <code>pair_</code> functions makes sure that only the needed pairs are generated. This is a small dataset so we can easily generate all pairs:</p>
<div class="sourceCode" id="cb2"><pre class="sourceCode R"><code class="sourceCode r"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true"></a><span class="op">&gt;</span><span class="st"> </span>pairs &lt;-<span class="st"> </span><span class="kw">pair</span>(town_names, <span class="dt">deduplica