Description Usage Arguments Value Examples
Check if a country admin level data file exists. Stats are calculated and stored at the admin level of a country, hence, a country could have as many files as admin levels.
1 2 3 4 5 6 7 | existsCtryNlDataFile(
ctryCode = NULL,
admLevel,
gadmVersion = pkgOptions("gadmVersion"),
gadmPolyType = pkgOptions("gadmPolyType"),
custPolyPath = NULL
)
|
ctryCode |
the ISO3 country code |
admLevel |
The country admin level of interest. |
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 |
TRUE/FALSE
1 2 3 4 5 | ctryCode <- "KEN"
admLevel <- "KEN_adm0"
message(Sys.time(), ": Data file for ", ctryCode,
ifelse(Rnightlights:::existsCtryNlDataFile(ctryCode, admLevel),
" FOUND", " NOT FOUND"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.