title: Transpose a table in R, but keep first row in the initial position
body: <p>I have the following table:</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>Attribute1</th>
  <th>Attribute2</th>
  <th>Attribute3</th>
  <th>Attribute4</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>a</td>
  <td>valueX</td>
  <td>valueY</td>
  <td>valueZ</td>
  </tr>
  <tr>
  <td>b</td>
  <td>value1</td>
  <td>value9</td>
  <td>value7</td>
  </tr>
  <tr>
  <td>c</td>
  <td>value8</td>
  <td>valueH</td>
  <td>valueG</td>
  </tr>
  <tr>
  <td>d</td>
  <td>valueQ</td>
  <td>value3</td>
  <td>value0</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>I need to transpose and transform this table in R like this:</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>Attribute1</th>
  <th>Attributes</th>
  <th>Value</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>a</td>
  <td>Attribute2</td>
  <td>valueX</td>
  </tr>
  <tr>
  <td>a</td>
  <td>Attribute3</td>
  <td>valueY</td>
  </tr>
  <tr>
  <td>a</td>
  <td>Attribute4</td>
  <td>valueZ</td>
  </tr>
  <tr>
  <td>b</td>
  <td>Attribute2</td>
  <td>value1</td>
  </tr>
  <tr>
  <td>b</td>
  <td>Attribute3</td>
  <td>value9</td>
  </tr>
  <tr>
  <td>b</td>
  <td>Attribute4</td>
  <td>value7</td>
  </tr>
  <tr>
  <td>c</td>
  <td>Attribute2</td>
  <td>value8</td>
  </tr>
  <tr>
  <td>c</td>
  <td>Attribute3</td>
  <td>valueH</td>
  </tr>
  <tr>
  <td>c</td>
  <td>Attribute4</td>
  <td>valueG</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>I tried so far to use the t() function, but without a good result.</p>
  <p>I mention that I have multiple number of attributes.</p>
  <p>Can you please give me a clue?</p>