R/data_ranked.R

#' Example of ranked vote matrix
#'
#' @description
#' This is an example of a ranked vote matrix for 4 voters and
#' 3 candidates. It can be used to illustrate different seat allocation formulas
#' that require ranked votes. 
#' 
#' @format A matrix with 3 rows and 4 columns, where each row represents a ranking,
#' each column is a voter, and each cell is the candidate ID (numeric or character)
#' #' that the voter ranked in that position. 
#' \describe{
#' \item{Voter1}{Candidates ranked first, second, and third by the first voter}
#' \item{Voter2}{Candidates ranked first, second, and third by the second voter}
#' ...
#' }
#' @source Created by the package authors for demonstration purposes. 
"ranked"

Try the i3pack package in your browser

Any scripts or data that you put into this service are public.

i3pack documentation built on June 8, 2025, 11:43 a.m.