saveCtryNlData: Save a data frame of a country's data to the appropriate location
Description
Saves the data frame created from processNlCountry* to the appropriate location.
Note: This function does not perform any validation error checking and will overwrite
existing data. Use with caution.
Usage
saveCtryNlData(ctryNlDataDF, ctryCode = NULL, admLevel,
gadmVersion = pkgOptions("gadmVersion"),
gadmPolyType = pkgOptions("gadmPolyType"), custPolyPath = NULL)
Arguments
ctryNlDataDF
dataframe with the country data to save
ctryCode
the ctryCode to which the data belongs
admLevel
the country admin level to process
gadmPolyType
The format of polygons to download from GADM
custPolyPath
Alternative to GADM. A path to a custom shapefile zip
Examples
Run this code# NOT RUN {
# }
# NOT RUN {
Rnightlights:::saveCtryNlData(ctryNlDataDF, ctryCode)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab