twocand_pollingbooth_download: Download two candidate preference voting data from each...

Description Usage Arguments Format Value Examples

View source: R/git-download.R

Description

Download two candidate preference voting data from each polling booth, from the five Australian Federal elections between 2004 and 2016.

Usage

1

Arguments

...

Additional arguments passed to 'download.file'

Downloads and returns the two candidate preferred votes for candidates in the House of Representatives, for each polling both, in the five Australian Federal elections between 2004 and 2016.

Format

A data frame with the following variables:

Value

A data frame containing two candidate preference votes

A dataset containing two candidate preferred vote counts, polling place locations, and other results for the House of Representatives from each of the 2004, 2007, 2010, 2013 and 2016 Australian federal elections. Includes the count of votes for the leading two candidates in the electorate after distribution of preferences for each polling place. Note that 2001 two candidate preferred vote is not available in this package. This data set is obtained using the 'twocand_pollingbooth_download' function. The data were obtained from the Australian Electoral Commission,

Examples

1
2
3
4
5
6
## Not run: 
tcp_pp <- twocand_pollingbooth_download()
library(dplyr)
tcp_pp %>% filter(year == 2016) %>% arrange(-OrdinaryVotes) %>% head

## End(Not run)

eechidna documentation built on Feb. 25, 2021, 5:08 p.m.