Download SpatialPolygonsDataFrame containing polygons of Australian federal electorates

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

if (FALSE) {
sF_16 <- sF_download(year = 2016)
# Plot a map of the electorates
library(sp)
plot(sF_16)
}