Learn R Programming

GADMTools (version 3.9-1)

gadm_exportToShapefile: Export to ESRI Shapefile

Description

Export a gadm object to an ESRI Shapefile. This function create a directory with te name provided as parameter which contains 4 files :

- name.dbf

- name.prj

- name.shp

- name.shx

Where "name" is the name provided as parameter. Directory is created in the current working directory

Usage

gadm_exportToShapefile(x, name)

Arguments

x

gadm_sp or gadm_sf Object

name

character name given to te shapefile

Value

none

Examples

Run this code
# NOT RUN {
# library(GADMTools)
# data("Corsica")

# gadm_exportToShapefile(Corsica, "Corse")

# }

Run the code above in your browser using DataLab