Learn R Programming

proporz (version 1.5.1)

reached_quorum_any_district: Check if parties reached a quorum in at least one district

Description

Base implementation, used by quorum_functions.

Usage

reached_quorum_any_district(votes_matrix, quorum_districts)

Value

Logical vector with length equal to the number of lists/parties (votes_matrix

rows) showing whether they reached the quorum or not.

Arguments

votes_matrix

votes matrix

quorum_districts

Vote threshold a party must reach in at least one district. Used as fraction of total votes within a district if less than 1, otherwise as number of votes. Must be greater than 0.

See Also

reached_quorum_total()

Examples

Run this code
(vm = matrix(c(239, 10, 308, 398, 20, 925), nrow = 3))
reached_quorum_any_district(vm, 25)

Run the code above in your browser using DataLab