saveAsStripped: Strip a gadm_sp object

Description Usage Arguments Value Note Author(s) References See Also Examples

View source: R/33_stripSP.R

Description

Strip a gadm_sp object (with property 'stripped' == FALSE) and save it stripped (with property 'stripped' == TRUE).

Usage

1
saveAsStripped(x, fname, name= NULL, basefile = './')

Arguments

x

Object gadm_sp with stripped property == FALSE

fname

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

name

String the name of the field in spdf, like "NAME_1".

basefile

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

Value

Object gadm_sp with stripped property == TRUE

Note

—-

Author(s)

Jean Pierre Decorps <jp.decorps@epiconcept.fr>

References

—-

See Also

—-

Examples

1
2
3
4
# library(GADMTools)
# library(sp)
# BE <- gadm_loadCountries('BEL', level=2)
# saveAsStripped(BE, "BEL", level=1)

GADMTools documentation built on Aug. 5, 2021, 1:06 a.m.