View source: R/create_centroids.R
create_centroids | R Documentation |
Create a data frame of longitude and latitude centroids of each polygon.
create_centroids(shp_sf, sf_id, largest = TRUE, verbose = FALSE)
shp_sf |
an sf object, a data set with a simple feature list column |
sf_id |
a string to indicate the column to identify individual polygons |
largest |
logical; for |
verbose |
a boolean to indicate whether to show function progress |
a tibble containing longitude and latitude
centroids <- create_centroids(tas_lga, "lga_code_2016")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.