powered by
Extract centroids from the polygons within a shapefile.
extract_centroids(shapefile)
SpatialPolygonsDataFrame containing polygons
list containing centroids as SpatialPoints and a dataframe with basic data on each polygon (e.g. name)
# NOT RUN { sF_download(year = 2016) electorate_centroids_2016 <- extract_centroids(sF_16) # }
Run the code above in your browser using DataLab