saveas: Save your own GADM shapefile as an rds file

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

Description

Save a GADM shapefile (.rds)

Usage

1
saveAs(x, name = NULL, directory = NULL)

Arguments

x

Object - GADMWWrapper

name

String - filename

directory

String - path to an alternative directory

Details

If directory is NULL (default), the file is stored in the same directory as specified in basefile parameter of gadm_loadCountries or gt2.loadCountries

Value

—-

Note

Do not specify the rds extension, it is added automatically.

Author(s)

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

References

—-

See Also

—-

Examples

1
2
3
4
5
6
7
# library(GADMTools)
# library(sp)
# France = gadm_loadCountries("FRA", level=1, basefile="./")
# Auvergne = subset(France,regions = "Auvergne", level=1)
# saveas(Auvergne, "./AUVERGNE")
# AUV <- gadm_loadCountries("AUVERGNE", level=1, basefile="./")
# plotmap(AUV)

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