approval

0th

Percentile

Summarizes the approval rate of the eventual winner(s)

Counts what proportion of voters approved of the election winners, defining "approved" as a voter listing the candidate on their ballot

Usage
approval(results, image, rcvcontest, n = 1)
Arguments
results

the tabulated election results

image

the clean ballot image

rcvcontest

(optional) The election to calculate results for. If the image contains more than one unique contest, this must be supplied.

n

the number of candidates being elected (defaults to 1)

Value

a numerical vector of length 1

Aliases
  • approval
Examples
# NOT RUN {
approval(sf_7_results, sf_bos_clean,
                   rcvcontest = "Board of Supervisors, District 7", n = 1)
# }
Documentation reproduced from package rcv, version 0.2.0, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.