check_polygon: Checks geometry for polygons.

View source: R/neighbors.R

check_polygonR Documentation

Checks geometry for polygons.

Description

If the provided geometry is a polygon, a point will be generated using sf::st_point_on_surface(). If a centroid is preferred, a new column can be created that contains the output of sf::st_centroid().

Usage

check_polygon(geometry)

Arguments

geometry

an sfc object

Value

Point geometry


sfdep documentation built on Sept. 13, 2024, 5:07 p.m.