Allocate seats proportionally for divisor methods
.
highest_averages_method(votes, n_seats, divisors)
numeric vector with number of votes for each party
total number of seats
sequence of divisors (length equal to the number of seats). If it is a single number (e.g. 0.5), a sequence is generated starting with it.
The number of seats per party as a vector
The highest averages method requires the number of votes for each party to be divided successively by a series of divisors. This produces a table of quotients, or averages, with a row for each divisor and a column for each party. The nth seat is allocated to the party whose column contains the nth largest entry in this table, up to the total number of seats available. (Wikipedia)