cleanBallots() function tries to clean data for use in
Some warnings from
validateBallots() can only be addressed by the user.
character vector of length equal to number of candidates
(needed when column names of
cleanBallots() function assumes
x contains rows and columns
corresponding to ballots and candidates respectively. Formatting corrections
are attempted in the following order:
x is a
matrix it is convered to a
Otherwise, user must provide a
x has non-numeric entries, user must
convert data to numeric type.
cand.names is specified, it is assigned as column names of
All collumn names must be uniquely specified.
x already has valid column names, no need to specify
If column names of
x missing and
cand.names not specified, returns
Removes blank columns.
Removes blank and/or non-sequentially ranked rows.
data.frame compatible for
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.