get_results_table | R Documentation |
Get results dataframe from a list of results as from ei_est_gen
get_results_table(
district_results,
cand_col,
race_col,
n_cand,
n_race,
n_iter,
add_other = TRUE
)
district_results |
A list of dataframes computed in the midst of ei_iter |
cand_col |
Passed through from ei_iter |
race_col |
Passed through from ei_iter |
n_cand |
Passed through from ei_iter |
n_race |
Passed through from ei_iter |
n_iter |
Passed through from ei_iter |
add_other |
A boolean. If true, adds an 'other' column to the output when only one race group is included. Generally, set TRUE for ei_iter, FALSE for ei_good. |
a dataframe of results that will work with table comparison funcs.
Ari Decter-Frain <agd75@cornell.edu>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.