title: rename the rows with the rows of another dataset of different lenght
body: <p>I have to rename the rows of the dataset states1 with the names of the rows of the dataset states2, but states2 is of length 50, while states1 of length 51. When using the following line of code I get an error due to the difference in the length.</p>
  <pre><code>row.names(states1) = states2
  
  </code></pre>
  <p>How could I rename the first 50 rows and leave the last one with the same name, using the other dataframe?</p>