Learn R Programming

eechidna (version 1.4.1)

Exploring Election and Census Highly Informative Data Nationally for Australia

Description

Data from the seven Australian Federal Elections (House of Representatives) between 2001 and 2019, and from the four Australian Censuses over the same period. Includes tools for visualizing and analysing the data, as well as imputing Census data for years in which a Census does not occur. This package incorporates data that is copyright Commonwealth of Australia (Australian Electoral Commission and Australian Bureau of Statistics) 2019.

Copy Link

Version

Install

install.packages('eechidna')

Monthly Downloads

92

Version

1.4.1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

February 25th, 2021

Functions in eechidna (1.4.1)

allocate_electorate

Determine which electoral division contains the centroid from each of the Census polygons.
fp01

First preference votes for candidates (House of Representatives) in each electorate.
dorling

Produce a Pseudo-Dorling Cartogram.
firstpref_pollingbooth_download

Download first preference voting data from each polling booth, from the six Australian Federal elections between 2001 and 2016.
nat_data_download

Download a data frame containing electorate centroids
weighted_avg_census_sa1

Function to compute weighted average of Census information using imputed populations as weights
nat_data19

Data and centroids corresponding to the Australian Electorates from 2019
extract_centroids

Extract centroids from the polygons within a shapefile.
nat_data07

Data and centroids corresponding to the Australian Electorates from 2007
twoparty_pollingbooth_download

Download two party preference voting data from each polling booth, from the seven Australian Federal elections between 2001 and 2016.
aec_add_carto_f

aec_add_carto_f - computes and binds the cartogram coordinates to original data
nat_data10

Data and centroids corresponding to the Australian Electorates from 2010
aec_carto_f

aec_carto_f - run dorling on data centers
weighted_avg_census

Function to compute weighted average of Census information using imputed populations as weights.
get_electorate_shapes

Extract shapefiles (of Australian electorates) from raw file into fortified map and data components.
nat_map01

Map of Australian Electorates from 2001
launch_app

Shiny app for exploring census and electorate data
nat_map04

Map of Australian Electorates from 2004
circle

Draw a circle
nat_map13

Map of Australian Electorates from 2013
complete_color

Auto complete (or cut) a vector to a fixed length
tpp01

Two party preferred votes for candidates in each electorate where Labor and Liberal parties were the two most popular parties.
nat_map16

Map of Australian Electorates from 2016
twocand_pollingbooth_download

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

Load shapefile of Australia into R
mapping_fn

Compute areas of intersection between each election boundary and those in the Census of interest. This is a less refined method than using SA1 centroids.
nat_data13

Data and centroids corresponding to the Australian Electorates from 2013
sF_download

Download SpatialPolygonsDataFrame containing polygons of Australian federal electorates
nat_data16

Data and centroids corresponding to the Australian Electorates from 2016
tcp01

Two candidate preferred votes for candidates (House of Representatives) in each electorate.
aec_carto_join_f

aec_carto_join_f - bind the cartogram coordinates to original data
aec_extract_f

aec_extract_f - extract subsets geographically
nat_data01

Data and centroids corresponding to the Australian Electorates from 2001
nat_map_download

Download a data frame containing the polygons of Australian federal electorates
nat_data04

Data and centroids corresponding to the Australian Electorates from 2004
nat_map19

Map of Australian Electorates from 2019
nat_map10

Map of Australian Electorates from 2010
nat_map07

Map of Australian Electorates from 2007
abs2001

Australian Census data on all electorates