View source: R/ana_elections_seats.R
seats_dhont | R Documentation |
This function computes the seats in election data.
seats_dhont(df, party, votes, seats, blanks = 0, barrier = 0)
party |
Character. Name of the column for parties. |
votes |
Character. Name of the columns with the number of votes. |
seats |
Numeric. Number of seats to be assigned. |
blanks |
Numeric. Number of blank votes in the circunscription. Default is zero. |
barrier |
Numeric. Vote percentage for electoral barrier. Default is zero. |
data |
Data frame. Input data frame with two columns party and votes. |
A data frame with three columns party, votes and seats.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.