Construct a tibble of centroid coordinates from an sf data.frame containing polygons in its geometry column.
1 |
tracts |
the sf data.frame whose coordinates we wish to compute. |
km |
boolean should the centroids be converted so that the euclidean distances between them are approximately measurable in km? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.