Description Usage Arguments Value Examples
View source: R/interpolation.R
Extract centroids from the polygons within a shapefile.
1 | extract_centroids(shapefile)
|
shapefile |
SpatialPolygonsDataFrame containing polygons |
list containing centroids as SpatialPoints and a dataframe with basic data on each polygon (e.g. name)
1 2 3 4 5 | ## 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.