majority: Majority system calculator

Description Usage Arguments Value Examples

View source: R/rangevoting.R

Description

Reads a csv file containing votes and computes the winner of that costituency in a first-past-the-post system

Usage

1
majority(counter)

Arguments

counter

"Counter of total parliament seats for each party in previously analyzed costituencies"

Value

Updated counter of total parliament seats

Examples

1
2
counter = c(1,0,3,2,0,5) #in the used dataset, 6 parties are running in the election
counter = majority(counter)

unimi-dse/1a62ddfc documentation built on Feb. 19, 2020, 10:43 p.m.