st_centerish: Get the kind of center of each shape

View source: R/center.R

st_centerishR Documentation

Get the kind of center of each shape

Description

Returns points within the shape, near the center. Uses the centroid if that's in the shape, or point on surface if not.

Usage

st_centerish(shp, epsg = 3857)

Arguments

shp

An sf dataframe

epsg

numeric EPSG code to planarize to. Default is 3857.

Value

An sf dataframe where geometry is the center(ish) of each shape in shp

Examples

data(towns)
st_centerish(towns)


geomander documentation built on April 16, 2023, 5:18 p.m.