Phylum | Abundance |
---|---|
Bacteroidetes | 12 |
Firmicutes | 4 |
Proteobacteria | 3 |
Firmicutes | 21 |
Firmicutes | 9 |
Bacteroidetes | 15 |
Proteobacteria | 3 |
Bacteroidetes | 8 |
Verrucomicrobia | 2 |
Bacteroidetes | 5 |
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;
Phylum | Abundance |
---|---|
Firmicutes | 34 |
Bacteroidetes | 40 |
Proteobacteria | 6 |
Verrucomicrobia | 2 |
Can you help me find the code that will allow me to output the above? Thank you from now.