results-table-state-rep: Get a table of results by candidate and district for state...

Description Usage Arguments Examples

Description

Get a table of results by candidate and district for state legislative representatives

Format candidate results in an HTML table for state legislative representatives

Usage

1
2
3
candidate_results_state_rep(map_id)

results_to_table_state_rep(results, keep_percentage = 0.05)

Arguments

map_id

An ID from the meae_maps table.

results

A data frame of results from candidate_results.

keep_percentage

What percentage of votes defines a contender?

Examples

1
2
3
4
5
map_id <- "meae.staterepresentative.1796.de.county"
candidate_results_state_rep(map_id)
map_id <- "meae.staterepresentative.1796.de.county"
results <- candidate_results_state_rep(map_id)
results_to_table_state_rep(results)

mapping-elections/mappingelections documentation built on July 24, 2019, 9:42 a.m.