nat_data_download: Download a data frame containing electorate centroids

Description Usage Arguments Value Examples

View source: R/git-download.R

Description

Downloads and returns a data frame containing the points that make up the centroids for each of the Australian electorates in the desired federal election.

Usage

1

Arguments

year

Desired year, must be one of 2001, 2004, 2007, 2010, 2011, 2013, 2016, 2019

...

Additional arguments passed to 'download.file'

Value

A data frame with data associated with each of the Australian federal electorates

Examples

1
2
3
4
5
6
7
8
library(eechidna)
library(dplyr)
library(ggmap)

nat_data19 <- nat_data_download(2019)

nat_data19 %>%
  qmplot(long_c, lat_c, data=.)

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