an inspect the order with the <code>levels()</code>:</p>
<div class="sourceCode" id="cb9"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb9-1"><a href="get-started.html#cb9-1" tabindex="-1"></a><span class="fu">levels</span>(bikes<span class="sc">$</span>weather_type) <span class="do">## an example of a factor with strings</span></span>
<span id="cb9-2"><a href="get-started.html#cb9-2" tabindex="-1"></a><span class="do">## [1] &quot;broken clouds&quot;    &quot;clear&quot;           </span>