Skip to contents

Drop invalid rows, warn if all invalid, add unique ID, transform (CRS)

Usage

shapefile_clean(shp, crs = 4269)

Arguments

shp

a shapefile object using sf::st_read()

crs

used in shp <- sf::st_transform(shp, crs = crs), default is crs = 4269 or Geodetic CRS NAD83

Value

like input shp, but applying crs and dropping if not valid, plus column ejam_uniq_id 1:NROW()