GADMTools (version 3.8-1)

gadm_saveStripped: Save a stripped GADM object

Description

Save a stripped ( with stripSP() ) GADM object for later use it with ggplot2.

Usage

gadm_saveStripped(x,fname, basefile = './')

Arguments

x

Object gadm_sp with stripped property == TRUE

fname

String file name of a region. You don't have to specify the suffix (admX) nor the file extension (.rds).

basefile

Character vector the path of the directory where shapefiles are stored. Default is "./"

Value

Boolean TRUE

References

----

See Also

----

Examples

Run this code
# NOT RUN {
# library(GADMTools)
# library(sp)
# BE <- gadm_loadCountries('BEL', level=2)
# S_BE <- stripSP(BE)
# gadm_saveStripped(S_BE, "BEL")
# }

Run the code above in your browser using DataCamp Workspace