adibender / coalitions

Coalition probabilities in multi-party democracies
https://adibender.github.io/coalitions/
Other
21 stars 4 forks source link

Bug in dHondt function in case of not ordered input data? #130

Closed mbflex closed 4 years ago

mbflex commented 4 years ago

Simple example:

dHondt(c(250, 0, 100), c("A", "B", "C"), n_seats=3) [1] 2 1

I believe the result is wrong - it schould be [1] 2 0 1

bauer-alex commented 4 years ago

Thanks @mbflex for the description. The bug is now fixed.