Transform sp shapefile to an sf shapefile object with a given crs coordinate reference system. The column names are converted to lowercase and non-trailing spaces replaced with underscores via the janitor::clean_names function

sp_transform_sf(sp, crs = 4326)

Arguments

sp

(sp) : The spatial polygon sp object which you want to transform into an sf object

crs

(sf) : The Coordinate Reference System (CRS) system with default value of 4326

Value

(sf) : The sf converted object