i have a df structured like this:
Value. Numb.
46. 200
47. 200
55. 200
21. 200
32. 140
23. 140
56. 700
If numb value is repeated, I want to substitute the value with the result of the division Numb/number of times it appears, obtaining a new df:
Value. Numb.
46. 50
47. 50
55. 50
21. 50
32. 70
23. 70
56. 700
How can I do? better a solution comprising the use of dplyr.