st_centroid_within_poly: Function for finding a centroid and ensuring that it is...

Description Usage Arguments Examples

Description

Function for finding a centroid and ensuring that it is within the polygon for irregularly shaped polygons This function returns an sf point object.

Usage

1

Arguments

poly

the sf object containing polygons that you want centroids for

Examples

1
sites_lab <- st_centroid_within_poly(sites_crop) 

tvercrobbie/ALERC documentation built on Oct. 11, 2020, 12:56 a.m.