View source: R/elec_functions.R
countVotes | R Documentation |
Given a elec.data object, count the votes as reported and determine winner(s) and loser(s).
countVotes(Z)
Z |
the elec.data object. |
Updated 'Z' matrix with the total votes as components inside it.
Luke W. Miratrix
Z = make.cartoon() ## Take away 20 percent of C1's votes. Z$V$C1 = Z$V$C1 * 0.8 ## Count again to find winner. Z = countVotes(Z) Z
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.