a data.frame or tibble with two columns. The first and second column represents names of parties and numbers of votes, respectively.
m
a numeric value of district magnitude.
method
a character string giving a method for computing seat allocation. See "Allocation methods" section.
extra
a numeric vector of length m. If method is “custom divisor” (“cd”) or “custom quota” (“cq”), this parameter is mandatory. See "About custom methods" section.
Value
A tibble object with two columns.
Allocation methods
Highest average method
“d’hondt” (“dt”) or “jefferson”: D’hondt / Jefferson method
“adams” or “cambridge”: Adams / Cambridge method
“sainte-lague” (“sl”) or “webster”: Sainte-Laguë / Webster method