Learn R Programming

eechidna (version 1.4.1)

sF_download: Download SpatialPolygonsDataFrame containing polygons of Australian federal electorates

Description

Download SpatialPolygonsDataFrame containing polygons of Australian federal electorates

Usage

sF_download(year, ...)

Arguments

year

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

...

Additional arguments passed to `download.file`

Downloads and returns a large SpatialPolygonsDataFrame containing the polygons and associated data for each of the Australian electorates in the desired federal election. This object is obtained using the `sF_download` function. The data were obtained from the Australian Electoral Commission and the Australian Bureau of Statistics.

Value

A SpatialPolygonsDataFrame containing polygons of the Australian federal electorates

Examples

Run this code
# NOT RUN {
sF_16 <- sF_download(year = 2016)
# Plot a map of the electorates
library(sp)
plot(sF_16)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab