Learn R Programming

RCzechia (version 1.7.2)

volebni_okrsky: Election Districts (Volebn<U+00ED> okrsky) of the Czech Republic

Description

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")

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.

Format

sf data frame with 14 761 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<U+011B>stsk<U+00E1> <U+010D><U+00E1>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 February 2021 (reflecting the freeze between announcing the date of the general elections by the President in December 2020 and certifying the results sometime in October 2021). Downloaded size of high resolution shapefile is 76 MB, size of the low res object is 5 MB (so proceed with caution, and patience).

Examples

Run this code
# NOT RUN {
 library(sf)

prazske_okrsky <- subset(volebni_okrsky("low"), ObecKod == "554782")
plot(prazske_okrsky) # the districts of Prague
# }

Run the code above in your browser using DataLab