Learn R Programming

SafeVote (version 1.0.1)

extractMargins: extract margins from the results of a ballot count

Description

extract margins from the results of a ballot count

Usage

extractMargins(marginNames, crRanks, cr)

Value

named list of margins

Arguments

marginNames

list of colnames of the margins in our SafeRank result

crRanks

ranks of candidates, not necessarily total

cr

structure returned by a ballot-counting method

Margins are adjusted for tied candidates, such that candidates within a tie group have margins indicative of their relative strengths. Extremely small margins are indicative of floating-point roundoff errors.