getPolyFname: Returns the directory name of the unzipped shapefile...

Description Usage Arguments Value Examples

View source: R/polygons.R

Description

Returns the directory name of the unzipped shapefile downloaded from http://gadm.org without the path

Usage

1
2
getPolyFname(ctryCode = NULL, gadmVersion = pkgOptions("gadmVersion"),
  gadmPolyType = pkgOptions("gadmPolyType"), custPolyPath = NULL)

Arguments

ctryCode

character the ISO3 code of the country

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 name of shapefile directory

Examples

1
2
Rnightlights:::getPolyFname("KEN")
 #returns "KEN_adm_shp"

Rnightlights documentation built on Aug. 29, 2019, 5:02 p.m.