Skip to contents

Function returning data frame of the local election districts for the Czech Republic as sf polygons. It takes a single parameter resolution - high res (default) or low res polygons.

Usage

volebni_okrsky(resolution = "high")

Source

© ČÚZK, 2023 https://vdp.cuzk.cz/

Arguments

resolution

Should the function return high or low resolution shapefile? Allowed values are "high" (default) and "low". This parameter affects only the geometry column, all other fields remain the same.

Value

sf data frame with 14 733 rows of 6 variables + geometry

Kod

Unique id of the district.

Cislo

Id of the district within a given Obec / not globally unique.

ObecKod

Id of obec - maps to obce_polygony()$KOD_OBEC.

MomcKod

Id of městská část - maps to casti()$KOD.

KOD_LAU1

Id of okres - maps to okresy()$KOD_LAU1.

KOD_CZNUTS3

Id of kraj - maps to kraje()$KOD_CZNUTS3.

Details

Due to package size constraints the data are stored externally (and a working internet connection is required to use the package).

The data is current to January 2023 (the presidential elections). Downloaded size of high resolution shapefile is 75 MB, size of the low res object is 5 MB (so proceed with caution, and patience).

Examples

# \donttest{
 library(sf)

prazske_okrsky <- subset(volebni_okrsky("low"), ObecKod == "554782")
#> RCzechia: using dataset stored locally in ~/.rczechia
plot(prazske_okrsky) # the districts of Prague

# }