Description Usage Arguments Slots
The Voters class is used to represent multiple voters at the same time.
1 2 3 4 5 6 7 8 9 10 | ## S4 method for signature 'Voters'
initialize(.Object, position, dimension, role,
voter_count)
Voters(position, dimension, role)
as.voters(voter)
## S3 method for class 'Voter'
as.voters(voter)
|
.Object |
The Voters object. |
position |
A position vector or matrix, either indicating the voter's position once (notwithstanding drift and vibration) or for all voting iterations. |
dimension |
Dimensionality of the voters' positions. |
role |
(optional) The role of the voter, one of "Normal", "Veto", "AS" and "Random". Can only be used with the |
voter_count |
The number of voters. |
voter |
Voter object. |
position
A position matrix with dimension * voter_count
columns. There is either one row for fixed positions (notwithstanding drift and vibration), or one row per vote iteration.
dimension
An integer specifying the dimension of each voter's position, defaults to ncol(position) / voter_count
.
role
The role of the voter, one of "AS", "Veto", "Normal" or "Random".
voter_count
The number of voters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.