Description Usage Arguments Value Examples
Read a country admLevel polygon. Reads the saved RDS format of the shapefile
which is saved as part of dnldCtryPoly
by default. Otherwise,
it will try to read the shapefile. If it fails it returns null.
1 2 3 4 5 6 7 8 9 | readCtryPolyAdmLayer(
ctryCode = NULL,
admLevel,
polyType = "rds",
dnldPoly = TRUE,
gadmVersion = pkgOptions("gadmVersion"),
gadmPolyType = pkgOptions("gadmPolyType"),
custPolyPath = NULL
)
|
ctryCode |
|
admLevel |
|
polyType |
|
dnldPoly |
|
gadmVersion |
The GADM version to use |
gadmPolyType |
The format of polygons to download from GADM |
custPolyPath |
Alternative to GADM. A path to a custom shapefile zip |
SpatialPolygonsDataFrame
The admLevel polygon layer or NULL
if not found
1 2 3 4 5 | ## Not run:
readCtryPolyAdmLayer("KEN", "KEN_adm1")
#returns "KEN_adm1"
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.