an></code></pre></div>
</div>
<div id="str_split-split-up-a-string-into-pieces" class="section level2">
<h2><code>str_split()</code>: Split up a string into pieces</h2>
<p>To split a string into pieces with breaks based on a particular
pattern match stringr uses <code>str_split()</code> and base R uses
<code>strsplit()</code>. Unlike most other functions,
<code>strsplit()</code> starts with the character vector to modify.</p>
<div class="sourceCode" id="cb30"><pre class="sourceCode r"><code class="sourceCod