Function returning data frame of LAU2 administrative units for the Czech Republic as sf
polygons. It takes no parameters.
Source
© ČÚZK, 2021 https://vdp.cuzk.cz/
Value
sf
data frame with 6.258 rows of 14 variables + geometry
- KOD_OBEC
Code of the level I commune (obec).
- NAZ_OBEC
Name of the level I commune (obec).
- KOD_POU
Code of the level II commune (obec s poverenym uradem).
- NAZ_POU
Name of the level II commune (obec s poverenym uradem)).
- KOD_ORP
Code of the level III commune (obec s rozsirenou pusobnosti).
- NAZ_ORP
Name of the level III commune (obec s rozsirenou pusobnosti).
- KOD_OKRES
Code of the district (okres).
- KOD_LAU1
Code of the LAU1 administrative unit (okres).
- NAZ_LAU1
Name of the LAU1 administrative unit (okres).
- KOD_KRAJ
Code of the region (kraj).
- KOD_CZNUTS3
Code of the NUTS3 unit (kraj)
- NAZ_CZNUTS3
Name of the NUTS3 unit (kraj)
Details
Due to package size constraints the data are stored externally (and a working internet connection is required to use the package).
The dataset is based on RUIAN data by the Czech cadastral office. If necessary you can download the most up to date raw dataset in VFR format (a special case of XML which is understood by GDAL) on https://vdp.cuzk.cz/vdp/ruian/vymennyformat (in Czech only).
The data is current to June 2024. Downloaded size is 13.2 MB (so use with caution, and patience).
Examples
# \donttest{
library(sf)
library(dplyr)
#>
#> Attaching package: ‘dplyr’
#> The following objects are masked from ‘package:stats’:
#>
#> filter, lag
#> The following objects are masked from ‘package:base’:
#>
#> intersect, setdiff, setequal, union
praha <- obce_polygony() %>%
filter(NAZ_LAU1 == "Praha")
#> RCzechia: using dataset stored locally in ~/.rczechia
plot(praha, max.plot = 1)
# }