eechidna (version 1.3.0)

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

...

Additional arguments passed to `download.file`

Downloads and returns a large SpatialPolygonsDataFrame containing the polygons and associated data for each of the 150 Australian electorates in the 2001 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 150 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