census: Australian Census data on all electorates

Description Usage Format Examples

Description

A dataset containing demographic and other information about each electorate from the Australian Census of Population and Housing.

The data were obtained from the Australian Bureau of Statistics, and downloaded from https://www.censusdata.abs.gov.au/datapacks/. Electorate boundaries match those in place at the time of the relevant data.

Census data for non-census years has been imputed. For more details on this process, see the help vignette: vignette("imputing-census-data", package = "eechidna")

Data for 2004, 2007, 2013 and 2010 was updated in October 2019. The older versions can be found in the GitHub repository.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17

Format

Data frames with the following variables, variables with an asterisk are only available in the 2001, 2006, 2011 and 2016 data sets.

An object of class data.frame with 150 rows and 70 columns.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
library(eechidna)
library(dplyr)
data(abs2001)
abs2001 %>% select(DivisionNm, MedianAge, Unemployed, NoReligion, MedianPersonalIncome) %>% head()

# Join with two-party preferred voting data
library(ggplot2)
data(tpp01)
election2001 <- left_join(abs2001, tpp01, by = "UniqueID")
# See relationship between personal income and Liberal/National support
ggplot(election2001, aes(x = MedianPersonalIncome, y = LNP_Percent)) + 
    geom_jitter() + 
    geom_smooth(method='lm')

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