f="#cb29-11" tabindex="-1"></a><span class="co">#&gt; [1] &quot;appleapple&quot;   &quot;pearpear&quot;     &quot;bananabanana&quot;</span></span>
<span id="cb29-12"><a href="#cb29-12" tabindex="-1"></a><span class="fu">str_dup</span>(fruit, <span class="dv">1</span><span class="sc">:</span><span class="dv">3</span>)</span>
<span id="cb29-13"><a href="#cb29-13" tabindex="-1"></a><span class="co">#&gt; [1] &quot;apple&quot;              &quot;pearpear&quot;           &quot;bananabananabanana&quot;</span></sp