rcv (version 0.2.0)

make_d3list: Creates a data frame for use with the networkD3 package

Description

Creates a data frame for use with the networkD3 package

Usage

make_d3list(results)

Arguments

results

A dataframe containing rcv election results in the format produced by `rcv_tally()`

Value

A list of 2 dataframes that can be used to construct sankey diagrams via the networkD3 package's `sankeyNetwork()` function

Examples

Run this code
# NOT RUN {
make_d3list(results = sf_7_results)
# }

Run the code above in your browser using DataLab