check_ties: Check voting ties for errors

View source: R/voting.R

check_tiesR Documentation

Check voting ties for errors

Description

Compares the voting scores of the last seat in and first seat out, for use with seat calculation functions. The check assumes that the calling function correctly assigns tied seats to the first listed party, and depending on the value of the ties parameter, it can either error (clean or dirty ties if ties=="error"), or warn (dirty ties if ties=="first").

Usage

check_ties(score_last_in, score_first_out, ties)

Arguments

score_last_in

The score of the last seat allocated

score_first_out

The score of the first seat not allocated

ties

Should ties cause an "error" or should the "first" be chosen


torfason/zulutils documentation built on Aug. 21, 2023, 5:46 p.m.