Skip to contents

Save spatial data as shapefile

Usage

export_spdf(spdf, name)

Arguments

spdf

sf object

name

filename with full path

Value

boolean

Examples

if (FALSE) {
 library(gisr)
 library(sf)

 shp <- get_admin0(countries = "Nigeria")

 export_spdf(spdf = shp, name = "./GIS/nga_country_boundaries")
 export_spdf(spdf = shp, name = "./GIS/nga_country_boundaries.shp")
}