reaggregate_rates(
bounds = c(0, 5, 10),
rates = c(0.1, 0.2 ,0.3),
new_bounds = c(0, 2, 7, 10),
population_bounds = c(0, 2, 5, 7, 10),
population_weights = c(100, 200, 50, 150, 100)
)
Run the code above in your browser using DataLab