seats(parties = c("A", "B", "C"),
votes = c(100, 150, 60),
n_seats = 5,
method = "hare")
seats(parties = c("V", "W", "X", "Y", "Z"),
votes = c(100, 150, 60, 80, 160),
n_seats = 15,
method = "droop")
seats(parties = c("A", "B", "C"),
votes = c(100, 150, 60),
n_seats = 5,
method = "dhondt")
seats(parties = c("V", "W", "X", "Y", "Z"),
votes = c(100, 150, 60, 80, 160),
n_seats = 15,
method = "webster")
Run the code above in your browser using DataLab