powered by
Provides a user-friendly wrapper for sf::st_write(). Note, geojson_write from the geojsonio package provides the same functionality https://github.com/ropensci/geojsonio.
sf::st_write()
geojson_write
writeGeoJSON(shp, filename)
Spatial data object
File name of the output geojson