Learn R Programming

sfdep (version 0.2.5)

check_polygon: 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)

Value

Point geometry

Arguments

geometry

an sfc object