title: How to set up independent variable (x) in the fisrt column in R?
body: <p>When I see the built-in data in R,</p>
  <p>View(state.x77)</p>
  <p><a href="https://i.stack.imgur.com/WcODc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WcODc.png" alt="enter image description here" /></a></p>
  <p>I see the independent variable (States) is located in the first column in R table.</p>
  <p>When I generate data</p>
  <pre><code>Genotype&lt;- c(&quot;A&quot;,&quot;B&quot;,&quot;C&quot;,&quot;D&quot;,&quot;E&quot;)
  KN&lt;- c(616,576,615,590,606)
  KW&lt;- c(335.5,359.8,335.6,357.8,333.3)
  COB&lt;- c(242.5,237.2,234.3,243.8,232.6)
  dataA&lt;- data.frame(Genotype,KN,KW,COB)
  </code></pre>
  <p>Data table is like below. I want Genotype to be located in the first column like <code>state.x77</code> data.</p>
  <p><a href="https://i.stack.imgur.com/ytnpD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ytnpD.png" alt="enter image description here" /></a></p>
  <p>Could you tell me how to do that?</p>
  <p>Thanks,</p>