Skip to content

Australian Federal Elections Results in R

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

carlosyanez/auspol

Repository files navigation

auspol

Lifecycle: experimental R-CMD-check auspol status badge

auspol provides result data for the Australian Federal Elections, from 2004 onwards, direclty from R. Along with functions to access the data, this package also provides functions to provide summaries tables and plots. The current version provides election data for the House of Representatives.

All the data is contained as a release (here) in Apache Parquet format, so it can be used directly in any programming language/tool/platform that supports Parquet.

Installation and pre-requisites

The current version of this package (0.0.1.0000) is not yet in CRAN. To install the package, you can download it from Github:

devtools::install_github("carlosyanez/auspol")

Alternatively, install from r-universe:


# Enable this universe
options(repos = c(
    carlosyanez = 'https://carlosyanez.r-universe.dev',
    CRAN = 'https://cloud.r-project.org'))

# Install some packages
install.packages('auspol')

How to use

This package provides a series of functions to access the data as published by the AEC, as well as convenience functions to retrieve summaries and produce standard plots. For reference on how to check the articles.

Disclaimer

This package's data has been sourced from the Australian Electoral Commission's website. However, data is provided here with no guarantees of accuracy.

The Australian Electoral Commission is the authoritative source of election data. Should you need to certify the authenticity or correctness of the data, you should retrieve the results directly from the AEC's website.

The GitHub repository contains the raw data processing scripts in the data-raw folder.

Issues? bugs? Ideas?

If you find something that is not quite right, please post an issue.f you have any ideas, or requests, or if you want to contribute, please let me know!

To Do

This package is still under development. At the moment, it only contains data for the House of Representatives.

Credits

Acknowledgment of Country

The author of this package acknowledges the Aboriginal and Torres Strait Islander people as the traditional custodians of Australia, and pays respect to their Elders past, present and emerging.