getCtryNlDataFnamePath: Construct the full path to save the file containing the...

Description Usage Arguments Value Examples

View source: R/ctrynldata.R

Description

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

Usage

1
2
3
4
5
6
7
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

1
2
#get the full path to the file containing data for KEN counties
Rnightlights:::getCtryNlDataFnamePath("KEN", "KEN_adm0")

chrisvwn/Rnightlights documentation built on Sept. 7, 2021, 1:44 a.m.