searchAdmLevelMembers: Search for names of members of admLevels

Description Usage Arguments Value Examples

View source: R/polygons.R

Description

Search for the admLevels in the admLevels of a particular country

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
searchAdmLevelMembers(
  ctryCode = NULL,
  admLevels,
  admLevelMembers,
  dnldPoly = TRUE,
  downloadMethod = pkgOptions("downloadMethod"),
  gadmVersion = pkgOptions("gadmVersion"),
  gadmPolyType = pkgOptions("gadmPolyType"),
  custPolyPath = NULL
)

Arguments

ctryCode

character The ctryCode of the country of interest

admLevels

character The admLevel to search

admLevelMembers

The names to search for within the admLevels

dnldPoly

logical If the country polygon doesn't exist should we download it?

downloadMethod

The method used to download polygons

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 vector of admin level names

Examples

1
2
3
4
5
## Not run: 
searchAdmLevelMembers("KEN", "county", "nai")
#returns "Nairobi"

## End(Not run)

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