title: Error Message: Invalid 'row.names' length while renaming rowname
body: <p>I am trying to rename the rows of my dataframe and keep getting the error message</p>
  <blockquote>
  <p>.rowNamesDF &lt;- (x, value = value) : invalid 'row.names' length'</p>
  </blockquote>
  <p>For example: This is my data:</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>Continent</th>
  <th>b</th>
  <th>c</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>Eur</td>
  <td>1</td>
  <td>A</td>
  </tr>
  <tr>
  <td>Asia</td>
  <td>2</td>
  <td>B</td>
  </tr>
  <tr>
  <td>Africa</td>
  <td>3</td>
  <td>C</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p><strong>Code for the data</strong></p>
  <pre><code>df&lt;-data.frame(a=c(&quot;Aus&quot;,&quot;Asia&quot;,&quot;Eur&quot;), b=1:3, c=LETTERS[1:3])
  </code></pre>
  <p><strong>I have tried</strong></p>
  <pre><code>rownames(df)&lt;-df[,1]
  </code></pre>
  <p>I can't figure out why the error message is showing.</p>