Description Usage Arguments Value
View source: R/useApprovalVoting.R
Takes in a set of voter preferences, applies plurality rule to them and returns the choice set.
1 2 3 4 5 6 | useApprovalVoting(
voterPreferencesApprovalVoting,
breakVoterTiesApprovalVoting = "random",
forceUniqueChoiceApprovalVoting = TRUE,
howToSelectUniqueChoiceApprovalVoting = "random"
)
|
voterPreferencesApprovalVoting |
A matrix of voter preferences that is numVoters x numAlts. |
breakVoterTiesApprovalVoting |
Determines how a voter with two equal top choices cast their vote. Can be "random", "first" or "last". |
forceUniqueChoiceApprovalVoting |
If there is more than one alternative in the choice set should only one be returned as the gorup choice. If set to TRUE then choose a method with the parameter |
howToSelectUniqueChoiceApprovalVoting |
If there is more than one alternative in the choice set, and |
A list where the first element is the group's choice set and the second element is the vote totals.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.