split_seats: Split seats between jurisdictions

Description Usage Arguments Value

View source: R/perrito-electoral.R

Description

Split seats between jurisdictions

Usage

1
split_seats(voters, nseats, fixed = 0, method = "hare")

Arguments

voters

A vector with the number of voters per jurisdiction.

nseats

The total number of seats to split.

fixed

The fixed number of seats for each jurisdiction. By default, zero.

method

The method used to split seats, by default, "Hare".

Value

A vector with the number of seats for each jurisdiction.


roliveros-ramos/perrito documentation built on Nov. 5, 2019, 4:09 a.m.