getCentroids: Get the long/lat of centroids of sf object (adds 2 new...

View source: R/centroids.R

getCentroidsR Documentation

Get the long/lat of centroids of sf object (adds 2 new columns if they do not already exist)

Description

Similar to cbind( shp , st_coordinates(st_centroid(shp)))

Usage

getCentroids(shp)

Arguments

shp,

sf object

Value

shp with 2 new lng and lat columns


cgauvi/sfSpHelpers documentation built on June 30, 2023, 10:48 p.m.