View source: R/interpolation.R
allocate_electorate | R Documentation |
Using the electoral boundaries at the time of an election and the centroids from the SA1 polygons from a neighbouring Census, allocate each SA1 to the electoral division that contains its centroid.
allocate_electorate(
centroids_ls,
electorates_sf,
census_year = NA,
election_year = NA
)
centroids_ls |
list containing centroids as SpatialPoints and a dataframe with basic data on each polygon (e.g. name) |
electorates_sf |
shapefile with electoral boundaries |
census_year |
census year |
election_year |
election year |
data frame detailing which electoral division each Census polygon is allocated to
## Not run:
# Mapping each SA1 from the 2011 Census to the 2013 electoral boundaries
mapping_c11_e13 <- allocate_electorate(centroids_ls = centroids_sa1_2011, electorates_sf = sF_13,
census_year = "2011", election_year = "2013")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.