Learn R Programming

rgugik (version 0.3.2)

emuia_download: Download Register of Towns, Streets and Addresses for communes

Description

Download Register of Towns, Streets and Addresses for communes

Usage

emuia_download(commune = NULL, TERYT = NULL, outdir = ".", unzip = TRUE, ...)

Value

a register in SHP format

Arguments

commune

commune name in Polish. Check commune_names() function.

TERYT

county ID (7 characters)

outdir

(optional) name of the output directory; by default, files are saved in the working directory

unzip

TRUE (default) or FALSE, when TRUE the downloaded archive will be extracted and removed

...

additional argument for utils::download.file()

Examples

Run this code
if (FALSE) {
emuia_download(commune = "Kotla") # 38 KB
emuia_download(TERYT = c("0203042", "2412032")) # 75 KB
}

Run the code above in your browser using DataLab