china_map2<-china_map %>% group_by(Country) %>% mutate(sum=sum(ODA))
I am trying to add the value by country, but I keep getting the overall sum of all countries. I would like to get the sum value for each country, but I get one result adding all values. Can someone help with this problem?