I want group by NAME
and sum MONEY
, but I want to keep the other cols of MONEY
. When I did it, my result is a DF
with just NAME
and MONEY
money = money %>%
group_by(NAME) %>%
summarise(SUM_MONEY = sum(MONEY))
I want group by NAME
and sum MONEY
, but I want to keep the other cols of MONEY
. When I did it, my result is a DF
with just NAME
and MONEY
money = money %>%
group_by(NAME) %>%
summarise(SUM_MONEY = sum(MONEY))