Description Usage Arguments Value Examples
Generates a matrix of random votes from a uniform distribution and writes a csv file
1 | randomvote(N, candidates, parties)
|
N |
"Number of voters" |
candidates |
"Names of candidates" |
parties |
"Names of parties associated to candidates" |
The data frame containing randomly generated votes
1 2 3 4 | N = 100
candidates = c('A','B','C')
parties = c('right','center','left')
randomvote(N,candidates,parties)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.