 <div class="page-inner">

            <section class="normal" id="section-">
<div id="factor" class="section level1" number="25">
<h1><span class="header-section-number">Chapter 25</span> factor</h1>
<p>The factor vector (<code>factor</code>) is actually an integer vector with the attributes <code>levels</code> and <code>class</code> is defined.</p>
<p>In the code below, an example of converting integer vector to <code>factor</code> by setting values to attributes.</p>
<pre><code>// Creating &quot;factor&q