extract_centroids: Extract centroids from the polygons within a shapefile.

View source: R/interpolation.R

extract_centroidsR Documentation

Extract centroids from the polygons within a shapefile.

Description

Extract centroids from the polygons within a shapefile.

Usage

extract_centroids(shapefile)

Arguments

shapefile

sf object containing polygon geometry

Value

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

Examples

## Not run: 
sF_download(year = 2016)
electorate_centroids_2016 <- extract_centroids(sF_16)

## End(Not run)

ropenscilabs/eechidna documentation built on May 4, 2023, 6:51 a.m.