apply_quorum | R Documentation |
This quorum calculation implementation is called within proporz()
, biproporz()
and
related functions. Generally, there's no need to call apply_quorum
directly.
apply_quorum(votes, quorum)
votes |
votes vector or votes matrix |
quorum |
Depending on
|
Vector or matrix with same dimension as votes
. Parties that failed to reach the
specified quorum have their votes set to zero.
quorum_functions
for more matrix examples.
# vector
(votes = c(81, 9, 10))
apply_quorum(votes, 10)
apply_quorum(votes, .11)
# matrix
(votes_matrix = matrix(c(91, 9, 199, 1), nrow = 2))
apply_quorum(votes_matrix, quorum_all(total = 0.1))
apply_quorum(votes_matrix, c(FALSE, TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.