index="-1"></a><span class="co"># base</span></span>
<span id="cb29-4"><a href="#cb29-4" tabindex="-1"></a><span class="fu">strrep</span>(fruit, <span class="dv">2</span>)</span>
<span id="cb29-5"><a href="#cb29-5" tabindex="-1"></a><span class="co">#&gt; [1] &quot;appleapple&quot;   &quot;pearpear&quot;     &quot;bananabanana&quot;</span></span>
<span id="cb29-6"><a href="#cb29-6" tabindex="-1"></a><span class="fu">strrep</span>(fruit, <span class="dv">1</span><span class="sc">:</span><span class="dv">3</s