我有一个看起来像这样的data.frame:
Name freq
1 species1 4
2 species2 8
3 species1 7
4 species1 10
5 species2 9
我想总结每个物种名称的频率。预期结果:
Name freq
1 species1 21
2 species2 17