extract_centroids: Extract centroids from the polygons within a shapefile.

Description Usage Arguments Value Examples

View source: R/interpolation.R

Description

Extract centroids from the polygons within a shapefile.

Usage

1
extract_centroids(shapefile)

Arguments

shapefile

SpatialPolygonsDataFrame containing polygons

Value

list containing centroids as SpatialPoints and a dataframe with basic data on each polygon (e.g. name)

Examples

1
2
3
4
5
## Not run: 
sF_download(year = 2016)
electorate_centroids_2016 <- extract_centroids(sF_16)

## End(Not run)

eechidna documentation built on Feb. 25, 2021, 5:08 p.m.