View source: R/interpolation.R
| extract_centroids | R Documentation | 
Extract centroids from the polygons within a shapefile.
extract_centroids(shapefile)
| shapefile | sf object containing polygon geometry | 
list containing centroids as sf points object 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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.