span class="at">x =</span> fruit)</span>
<span id="cb3-3"><a href="#cb3-3" tabindex="-1"></a><span class="co">#&gt; [1] 1 2 3 4</span></span>
<span id="cb3-4"><a href="#cb3-4" tabindex="-1"></a></span>
<span id="cb3-5"><a href="#cb3-5" tabindex="-1"></a><span class="co"># stringr</span></span>
<span id="cb3-6"><a href="#cb3-6" tabindex="-1"></a><span class="fu">str_which</span>(fruit, <span class="at">pattern =</span> <span class="st">&quot;a&quot;</span>)</span>
<span id="cb3-7"><a href="#cb3-7" tabindex="