powered by
Strip a gadm_sp object (with property 'stripped' == FALSE) and save it stripped (with property 'stripped' == TRUE).
saveAsStripped(x, fname, name= NULL, basefile = './')
Object gadm_sp with stripped property == FALSE
String file name of the region to save. You don't have to specify the suffix (admX) nor the file extension (.rds).
String the name of the field in spdf, like "NAME_1".
String the path of the directory where shapefiles are stored. Default is "./"
Object gadm_sp with stripped property == TRUE
----
# NOT RUN { # library(GADMTools) # library(sp) # BE <- gadm_loadCountries('BEL', level=2) # saveAsStripped(BE, "BEL", level=1) # }
Run the code above in your browser using DataLab