-3

I have a huge data frame that looks like this:

dados

and I want to sum the cells in column V9 according to V3; for example, I want to sum every V9 cell when V3=="Acrelândia".

josliber
  • 43,891
  • 12
  • 98
  • 133

1 Answers1

1
aggregate(V9~V3,df,sum);​​​​​​
bgoldst
  • 34,190
  • 6
  • 38
  • 64