Learn R Programming

SafeVote (version 1.0.1)

loserMargin: Find a loser and their margin of victory

Description

Find a loser and their margin of victory

Usage

loserMargin(votes)

Value

length-2 vector: the index of a losing candidate, and their margin of loss (0 if a tie, NA if no winners)

Arguments

votes

cleaned ballots