Skip to contents

This function uses an alternative method to try and make sf polygons valid. sf::st_make_valid often results in incorrect polygons with weird lines.

Usage

mme_make_valid(x, group)

Arguments

x

sf object with invalid geometries

group

Group of original data to add the fixed data back into

Value

a corrected sf object with valid geometries