View source: R/volebni_okrsky.R
volebni_okrsky | R Documentation |
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.
volebni_okrsky(resolution = "high")
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. |
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).
sf
data frame with 14 733 rows of 6 variables + geometry
Unique id of the district.
Id of the district within a given Obec / not globally unique.
Id of obec - maps to obce_polygony()$KOD_OBEC.
Id of městská část - maps to casti()$KOD.
Id of okres - maps to okresy()$KOD_LAU1.
Id of kraj - maps to kraje()$KOD_CZNUTS3.
© ČÚZK, 2023 https://vdp.cuzk.cz/
library(sf)
prazske_okrsky <- subset(volebni_okrsky("low"), ObecKod == "554782")
plot(prazske_okrsky) # the districts of Prague
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.