spdf_export: Export spatial data as shapefile with flags

View source: R/geo_utilities.R

spdf_exportR Documentation

Export spatial data as shapefile with flags

Description

Export spatial data as shapefile with flags

Usage

spdf_export(spdf, name)

Arguments

spdf

sf object

name

filename with full path

Value

boolean

Examples

## Not run: 
 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")

## End(Not run)


USAID-OHA-SI/gisr documentation built on Feb. 10, 2024, 8:55 p.m.