sF_download: Download SpatialPolygonsDataFrame containing polygons of...

View source: R/git-download.R

sF_downloadR Documentation

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

## Not run: 
sF_16 <- sF_download(year = 2016)
# Plot a map of the electorates
library(sp)
plot(sF_16)

## End(Not run)


ropenscilabs/eechidna documentation built on May 4, 2023, 6:51 a.m.