rcv (version 0.2.0)

make_alluvialdf: Creates a data frame for use with the alluvial package

Description

Creates a data frame for use with the alluvial package

Usage

make_alluvialdf(image, rcvcontest)

Arguments

image

A dataframe containing rcv election data

rcvcontest

The election to calculate results for

Value

A dataframe that counts how many ballots follow each unique "path" of candidates through the election rounds

Examples

Run this code
# NOT RUN {
make_alluvialdf(image = sf_bos_clean, rcvcontest = "Board of Supervisors, District 7")
# }

Run the code above in your browser using DataLab