Skip to content

Commit

Permalink
internal reached_quorums()
Browse files Browse the repository at this point in the history
  • Loading branch information
polettif committed Feb 6, 2024
1 parent 96d9e4f commit 00a91a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export(quorum_any)
export(quota_largest_remainder)
export(reached_quorum_any_district)
export(reached_quorum_total)
export(reached_quorums)
export(run_app)
export(upper_apportionment)
importFrom(stats,setNames)
4 changes: 2 additions & 2 deletions R/quorum.R
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ reached_quorum_any_district = function(votes_matrix, quorum_districts) {
#' votes_matrix = matrix(c(502, 55, 80, 10, 104, 55, 0, 1), ncol = 2)
#'
#' quorum_functions = quorum_any(any_district = 0.1, total = 100)
#' reached_quorums(votes_matrix, quorum_functions)
#' @export
#' proporz:::reached_quorums(votes_matrix, quorum_functions)
#' @keywords internal
reached_quorums = function(votes_matrix, quorum_funcs) {
if(!is.list(quorum_funcs) || !is.function(quorum_funcs[[1]])) {
stop("`", deparse(substitute(quorum_funcs)),
Expand Down
3 changes: 2 additions & 1 deletion man/reached_quorums.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 00a91a2

Please sign in to comment.