results-table: Get a table of results by candidate and Congressional...

Description Usage Arguments Examples

Description

Get a table of results by candidate and Congressional district

Format candidate results in an HTML table

Usage

1
2
3
candidate_results(map_id)

results_to_table(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.congressional.congress05.nh.county"
candidate_results(map_id)
map_id <- "meae.congressional.congress05.nh.county"
results <- candidate_results(map_id)
results_to_table(results)

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