Learn R Programming

Rnightlights (version 0.1.2)

getCtryPolyUrl: Get the GADM url from which to download country polygons

Description

Get the url from which to download country polygons. Polygons are downloaded from http://www.gadm.org. This provides the url to the zipped ESRI Shapefile which when decompressed contains a directory with the different country admin level boundary files. A sample url returned for Afghanistan: http://biogeo.ucdavis.edu/data/gadm2.8/shp/AFG_adm_shp.zip

Usage

getCtryPolyUrl(ctryCode)

Arguments

ctryCode

character string The ctryCode of interest

Value

Character string url of the zipped ESRI shapefile for the ctryCode

Examples

Run this code
# NOT RUN {
getCtryPolyUrl(ctryCode)
# }
# NOT RUN {
 #returns url for the zipped country ESRI shapefile

# }

Run the code above in your browser using DataLab