powered by
Counts what proportion of voters approved of the election winners, defining "approved" as a voter listing the candidate on their ballot
approval(results, image, rcvcontest, n = 1)
the tabulated election results
the clean ballot image
(optional) The election to calculate results for. If the image contains more than one unique contest, this must be supplied.
the number of candidates being elected (defaults to 1)
a numerical vector of length 1
# NOT RUN { approval(sf_7_results, sf_bos_clean, rcvcontest = "Board of Supervisors, District 7", n = 1) # }
Run the code above in your browser using DataLab