Package: eechidna 1.4.2

Jeremy Forbes

eechidna: Exploring Election and Census Highly Informative Data Nationally for Australia

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.

Authors:Jeremy Forbes [aut, cre], Di Cook [aut], Anthony Ebert [aut], Heike Hofmann [aut], Rob Hyndman [aut], Thomas Lumley [aut], Ben Marwick [aut], Carson Sievert [aut], Mingzhu Sun [aut], Dilini Talagala [aut], Nicholas Tierney [aut], Nathaniel Tomasetti [aut], Earo Wang [aut], Fang Zhou [aut], Commonwealth of Australia AEC [cph], Australian Bureau of Statistics ABS [cph]

eechidna_1.4.2.tar.gz
eechidna_1.4.2.zip(r-4.5)eechidna_1.4.2.zip(r-4.4)eechidna_1.4.2.zip(r-4.3)
eechidna_1.4.2.tgz(r-4.4-any)eechidna_1.4.2.tgz(r-4.3-any)
eechidna_1.4.2.tar.gz(r-4.5-noble)eechidna_1.4.2.tar.gz(r-4.4-noble)
eechidna_1.4.2.tgz(r-4.4-emscripten)eechidna_1.4.2.tgz(r-4.3-emscripten)
eechidna.pdf |eechidna.html
eechidna/json (API)

# Install 'eechidna' in R:
install.packages('eechidna', repos = c('https://robjhyndman.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/jforbes14/eechidna/issues

Datasets:
  • abs2001 - Australian Census data on all electorates
  • abs2004 - Australian Census data on all electorates
  • abs2006 - Australian Census data on all electorates
  • abs2007 - Australian Census data on all electorates
  • abs2010 - Australian Census data on all electorates
  • abs2011 - Australian Census data on all electorates
  • abs2013 - Australian Census data on all electorates
  • abs2016 - Australian Census data on all electorates
  • abs2019 - Australian Census data on all electorates
  • abs2021 - Australian Census data on all electorates
  • fp01 - First preference votes for candidates (House of Representatives) in each electorate.
  • fp04 - First preference votes for candidates (House of Representatives) in each electorate.
  • fp07 - First preference votes for candidates (House of Representatives) in each electorate.
  • fp10 - First preference votes for candidates (House of Representatives) in each electorate.
  • fp13 - First preference votes for candidates (House of Representatives) in each electorate.
  • fp16 - First preference votes for candidates (House of Representatives) in each electorate.
  • fp19 - First preference votes for candidates (House of Representatives) in each electorate.
  • fp22 - First preference votes for candidates (House of Representatives) in each electorate.
  • tcp01 - Two candidate preferred votes for candidates (House of Representatives) in each electorate.
  • tcp04 - Two candidate preferred votes for candidates (House of Representatives) in each electorate.
  • tcp07 - Two candidate preferred votes for candidates (House of Representatives) in each electorate.
  • tcp10 - Two candidate preferred votes for candidates (House of Representatives) in each electorate.
  • tcp13 - Two candidate preferred votes for candidates (House of Representatives) in each electorate.
  • tcp16 - Two candidate preferred votes for candidates (House of Representatives) in each electorate.
  • tcp19 - Two candidate preferred votes for candidates (House of Representatives) in each electorate.
  • tcp22 - Two candidate preferred votes for candidates (House of Representatives) in each electorate.
  • tpp01 - Two party preferred votes for candidates in each electorate where Labor and Liberal parties were the two most popular parties.
  • tpp04 - Two party preferred votes for candidates in each electorate where Labor and Liberal parties were the two most popular parties.
  • tpp07 - Two party preferred votes for candidates in each electorate where Labor and Liberal parties were the two most popular parties.
  • tpp10 - Two party preferred votes for candidates in each electorate where Labor and Liberal parties were the two most popular parties.
  • tpp13 - Two party preferred votes for candidates in each electorate where Labor and Liberal parties were the two most popular parties.
  • tpp16 - Two party preferred votes for candidates in each electorate where Labor and Liberal parties were the two most popular parties.
  • tpp19 - Two party preferred votes for candidates in each electorate where Labor and Liberal parties were the two most popular parties.
  • tpp22 - Two party preferred votes for candidates in each electorate where Labor and Liberal parties were the two most popular parties.

On CRAN:

australiaauunconfcensus-dataelectionunconf

6.66 score 43 stars 195 scripts 91 downloads 18 exports 108 dependencies

Last updated 2 years agofrom:8d771b3312. Checks:OK: 1 ERROR: 6. Indexed: no.

TargetResultDate
Doc / VignettesOKNov 17 2024
R-4.5-winERRORNov 17 2024
R-4.5-linuxERRORNov 17 2024
R-4.4-winERRORNov 17 2024
R-4.4-macERRORNov 17 2024
R-4.3-winERRORNov 17 2024
R-4.3-macERRORNov 17 2024

Exports:aec_add_carto_faec_carto_faec_carto_join_faec_extract_fallocate_electorateextract_centroidsfirstpref_pollingbooth_downloadget_electorate_shapeslaunch_appload_shapefilemapping_fnnat_data_downloadnat_map_downloadsF_downloadtwocand_pollingbooth_downloadtwoparty_pollingbooth_downloadweighted_avg_censusweighted_avg_census_sa1

Dependencies:askpassbase64encbitbit64bslibcachemclassclassIntclicliprcolorspacecolourpickercommonmarkcpp11crayoncrosstalkcurldata.tableDBIdigestdplyre1071evaluatefansifarverfastmapfontawesomefsgenericsgeojsonsfgeometriesggplot2ggthemesgluegtablehighrhmshtmltoolshtmlwidgetshttpuvhttrisobandjquerylibjsonifyjsonliteKernSmoothknitrlabelinglaterlatticelazyevallifecyclemagrittrMASSMatrixmemoisemgcvmimeminiUImunsellnlmeopensslpillarpkgconfigplotlyprettyunitsprogresspromisesproxypurrrR6rapidjsonrrappdirsRColorBrewerRcppreadrrlangrmapshaperrmarkdowns2sassscalessfsfheadersshinyshinyjssourcetoolsspspbabelstringistringrsystibbletidyrtidyselecttinytextzdbunitsutf8V8vctrsviridisLitevroomwithrwkxfunxtableyaml

An Introduction to Exploring Election and Census Highly Informative Data Nationally for Australia

Rendered fromeechidna-intro.Rmdusingknitr::rmarkdownon Nov 17 2024.

Last update: 2021-02-25
Started: 2019-03-12

Readme and manuals

Help Manual

Help pageTopics
Australian Census data on all electoratesabs2001 abs2004 abs2006 abs2007 abs2010 abs2011 abs2013 abs2016 abs2019 abs2021
aec_add_carto_f - computes and binds the cartogram coordinates to original dataaec_add_carto_f
aec_carto_f - run dorling on data centersaec_carto_f
aec_carto_join_f - bind the cartogram coordinates to original dataaec_carto_join_f
aec_extract_f - extract subsets geographicallyaec_extract_f
Determine which electoral division contains the centroid from each of the Census polygons.allocate_electorate
Draw a circlecircle
Auto complete (or cut) a vector to a fixed lengthcomplete_color
Produce a Pseudo-Dorling Cartogram.dorling
Extract centroids from the polygons within a shapefile.extract_centroids
Download first preference voting data from each polling booth, from the six Australian Federal elections between 2001 and 2016.firstpref_pollingbooth_download
First preference votes for candidates (House of Representatives) in each electorate.fp fp01 fp04 fp07 fp10 fp13 fp16 fp19 fp22
Extract shapefiles (of Australian electorates) from raw file into fortified map and data components.get_electorate_shapes
Shiny app for exploring census and electorate datalaunch_app
Load shapefile of Australia into Rload_shapefile
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.mapping_fn
Download a data frame containing electorate centroidsnat_data_download
Download a data frame containing the polygons of Australian federal electoratesnat_map_download
Download SpatialPolygonsDataFrame containing polygons of Australian federal electoratessF_download
Two candidate preferred votes for candidates (House of Representatives) in each electorate.tcp tcp01 tcp04 tcp07 tcp10 tcp13 tcp16 tcp19 tcp22
Two party preferred votes for candidates in each electorate where Labor and Liberal parties were the two most popular parties.tpp tpp01 tpp04 tpp07 tpp10 tpp13 tpp16 tpp19 tpp22
Download two candidate preference voting data from each polling booth, from the five Australian Federal elections between 2004 and 2016.twocand_pollingbooth_download
Download two party preference voting data from each polling booth, from the seven Australian Federal elections between 2001 and 2016.twoparty_pollingbooth_download
Function to compute weighted average of Census information using imputed populations as weights.weighted_avg_census
Function to compute weighted average of Census information using imputed populations as weightsweighted_avg_census_sa1