Learn R Programming

Rnightlights (version 0.2.4)

getCtryNlDataFnamePath: Construct the full path to save the file containing the country data

Description

Construct the full path to save the file containing the country data. Note it does not indicate if the file exists

Usage

getCtryNlDataFnamePath(ctryCode = NULL, admLevel,
  gadmVersion = pkgOptions("gadmVersion"),
  gadmPolyType = pkgOptions("gadmPolyType"), custPolyPath = NULL)

Arguments

ctryCode

character string The ctryCode of interest

admLevel

character string The 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

Value

Character string the full path to the data file of a country admin level

Examples

Run this code
# NOT RUN {
#get the full path to the file containing data for KEN counties
Rnightlights:::getCtryNlDataFnamePath("KEN", "KEN_adm0")

# }

Run the code above in your browser using DataLab