I have a dataset column with different medical specialties but the specialties repeat and for each row there is a count. I want to sum the values for each specialty and also ignore the rows with less than 10. How do I do this in R?
For Ex:
Col1 Col2
Internal Med 11
Internal Med 12
Neurology 5
Neurology 13
Internal Med 9
I should get Internal Med- 12 + 11
(9 is ignored)
Neurology- 13
(5 is ignored)