 id="cb17-3"><a href="#cb17-3" tabindex="-1"></a><span class="co">#&gt; Error in nchar(factor(&quot;abc&quot;)): &#39;nchar()&#39; requires a character vector</span></span></code></pre></div>
<div class="sourceCode" id="cb18"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb18-1"><a href="#cb18-1" tabindex="-1"></a><span class="co"># stringr</span></span>
<span id="cb18-2"><a href="#cb18-2" tabindex="-1"></a><span class="fu">str_length</span>(<span class="fu">factor</span>(<span class="st">&