powered by
Check if VIIRS nightlight data for the country exists in the country nightlight data file. First checks if the country nightlight data file exists.
existsCtryNlData(ctryCode = NULL, admLevel, nlTypes, nlPeriods, nlStats, gadmVersion = pkgOptions("gadmVersion"), custPolyPath = NULL)
character The ISO3 code of the country
character string The country admin level of interest
character The nlTypes
character The nlPeriods
character The nlStats to check for
The GADM version to use
Alternative to GADM. A path to a custom shapefile zip
TRUE/FALSE
# NOT RUN { Rnightlights:::existsCtryNlData("KEN", "KEN_adm0", "VIIRS.M","201401", "sum") # }
Run the code above in your browser using DataLab