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

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