n class="sc">$</span>season) <span class="do">## an example of a factor with numbers</span></span>
<span id="cb9-7"><a href="get-started.html#cb9-7" tabindex="-1"></a><span class="do">## [1] &quot;3&quot; &quot;0&quot; &quot;1&quot; &quot;2&quot;</span></span></code></pre></div>
<p>Also, we can manually change the order of a factor by supplying a vector of level names to the <code>factor()</code> function:</p>
<div class="sourceCode" id="cb10"><pre class="sourceCode r"><code class="sourceCode r"><span id="c