reached_quorum_total: Check if parties reached the quorum for all votes

View source: R/quorum.R

reached_quorum_totalR Documentation

Check if parties reached the quorum for all votes

Description

Base implementation, used by quorum_functions.

Usage

reached_quorum_total(votes_matrix, quorum_total)

Arguments

votes_matrix

votes matrix

quorum_total

Vote threshold a party must reach for all votes cast. Used as fraction of total votes if less than 1, otherwise as number of votes. Must be greater than 0.

Value

Logical vector with length equal to the number of lists/parties (votes_matrix rows) showing whether they reached the quorum or not.

Note

Votes are not weighted across districts. This is relevant if the quorum threshold is the minimal number of voters (either as percentage or absolute value). In this case, use weight_list_votes() before calculating the quorum.

See Also

reached_quorum_any_district()

Examples

(vm = matrix(c(239, 10, 308, 398, 20, 925), nrow = 3))
reached_quorum_total(vm, 35)

polettif/proporz documentation built on June 13, 2025, 7:12 a.m.