title: Editing tables with R studio
body: <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>Phylum</th>
  <th>Abundance</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>Bacteroidetes</td>
  <td>12</td>
  </tr>
  <tr>
  <td>Firmicutes</td>
  <td>4</td>
  </tr>
  <tr>
  <td>Proteobacteria</td>
  <td>3</td>
  </tr>
  <tr>
  <td>Firmicutes</td>
  <td>21</td>
  </tr>
  <tr>
  <td>Firmicutes</td>
  <td>9</td>
  </tr>
  <tr>
  <td>Bacteroidetes</td>
  <td>15</td>
  </tr>
  <tr>
  <td>Proteobacteria</td>
  <td>3</td>
  </tr>
  <tr>
  <td>Bacteroidetes</td>
  <td>8</td>
  </tr>
  <tr>
  <td>Verrucomicrobia</td>
  <td>2</td>
  </tr>
  <tr>
  <td>Bacteroidetes</td>
  <td>5</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>My question is I have a table like above in R studio. I want to write this table by combining the similar ones in the Phylum column in a new table and by adding the Abundance column while doing this, but I couldn't find a way. Sample output;</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>Phylum</th>
  <th>Abundance</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>Firmicutes</td>
  <td>34</td>
  </tr>
  <tr>
  <td>Bacteroidetes</td>
  <td>40</td>
  </tr>
  <tr>
  <td>Proteobacteria</td>
  <td>6</td>
  </tr>
  <tr>
  <td>Verrucomicrobia</td>
  <td>2</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>Can you help me find the code that will allow me to output the above?
  Thank you from now.</p>