RCzechia

RCzechia: Spatial Objects of the Czech Republic - Published in JOSS (2023)

https://github.com/jlacko/rczechia

Science Score: 98.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 4 DOI reference(s) in README and JOSS metadata
  • Academic publication links
    Links to: joss.theoj.org, zenodo.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software

Keywords

czech-republic r shapefile
Last synced: 6 months ago · JSON representation ·

Repository

A package providing Czech shapefiles - LAU & NUTS regions, municipalities, rivers etc. - in R friendly format for analysis & visualization

Basic Info
Statistics
  • Stars: 29
  • Watchers: 2
  • Forks: 6
  • Open Issues: 0
  • Releases: 25
Topics
czech-republic r shapefile
Created over 8 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct Citation

README.md

RCzechia

R-CMD-check CRAN CRAN-checks Codecov test coverage Downloads-weekly Downloads-total DOI DOI <!-- badges: end -->

This project downloads a set of shapefiles relevant to the Czech Republic. It was inspired by the popular tigris package for US datasets.

Kraje České republiky

For examples of RCzechia in action please see the package vignette:

The administrative area polygons are based on the RÚIAN register; the natural objects were based originally on ArcČR 500 by ARCDATA and later moved to Data200 by ČÚZK.

The shapefiles are by necessity larger than the limits of a CRAN package size allow. The data are therefore stored remotely (on Amazon Cloud / AWS S3) and downloaded as required. As consequence a working internet connection is required to fully use the package.

For the most commonly used shapes (republika, kraje and okresy) an optional low resolution version is also included. To access it specify the value of resolution parameter as "low" (default is "high").

Access to the external files is logged, from time to time I check the logs (mainly to better understand my bandwidth charges).

A note to Czech users

Tohle je "oficiální", a tedy anglické, readme. Českou verzi naleznete na http://www.jla-data.net/cze/package-rczechia/

Installation

The package is on CRAN (as of March 2018) so to get a stable version simply run: r install.packages("RCzechia") You can also get the latest development version by running remotes::install_github("jlacko/RCzechia"). The main branch should be always reasonably stable, but I do not suggest cloning of development branches unless you know what you are doing - these are where the raw action is happening, red in tooth and claw.

The following spatial objects are included:

administrative:

  • republika: borders of the Czech Republic as a polygon
  • kraje: 14 regions of the Czech Republic & Prague
  • okresy: 76 districts (LAU1 areas) of the Czech Republic + Prague (legally not a district but the capital)
  • orp_polygony 205 municipalities with extended powers (in Czech: obce s rozšířenou působností) + Prague (legally not a city but the capital)
  • obce_polygony: 6.258 municipalities of the Czech Republic
  • obce_body the same as obce_polygony, but centroids instead of polygons
  • casti: primarily 57 city parts of Prague, but also of other cities with defined parts (Brno, Ostrava and other)
  • katastry: 13.076 cadastral areas (katastrální území) of the Czech Republic
  • senat_obvody: 81 senate districts (volební obvody senátu)
  • volebni_okrsky: 14.733 general election districts (volební okrsky)
  • zip_codes: 2.671 ZIP code areas (poštovní směrovací čísla / PSČ)
  • historie: historical administrative areas + census data, notably including data on German speaking residents before the second world war

natural:

  • reky: streams and rivers
  • plochy: stillwaters (lakes and ponds).
  • silnice: roads (highways, speedways etc.)
  • zeleznice: railroads
  • chr_uzemi: protected natural areas (chráněná území)
  • lesy: woodland areas (more than 30 ha in area)
  • KFME_grid: KFME grid cells (faunistické čtverce)
  • vyskopis: terrain of the Czech republic as a {terra} package raster object
  • geomorfo: geomorphological division of the Czech Republic

All objects are implemented as functions returning data frames, so must be followed by brackets (i.e. hranice <- republika()).

In addition a number of utility functions is provided:

  • geocode: interfaces to geocoding API of ČÚZK.
  • revgeo: interfaces to reverse geocoding API of ČÚZK.

Call for Action

The project is actively maintained, and ideas & suggestions to improve the package are greatly welcome. Should you feel more at ease with old fashioned email than the GitHub ticketing system - do drop me a line.

But raising an issue is preferable, as I am human and I forget; GitHub does not suffer from such a failing, and will keep on reminding me till the sun and moon are darkened, and the stars no longer shine.

More detailed information can be found in the CONTRIBUTING document.

Code of Conduct

Please note that the RCzechia project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Owner

  • Name: Jindra Lacko
  • Login: jlacko
  • Kind: user
  • Location: Prague, Czech Republic

#rstats fanboy. Has a database and is not afraid to use it!

JOSS Publication

RCzechia: Spatial Objects of the Czech Republic
Published
March 02, 2023
Volume 8, Issue 83, Page 5082
Authors
Jindra Lacko ORCID
Prague University of Economics and Business
Editor
Martin Fleischmann ORCID
Tags
spatial vector data country specific Czechia

Citation (CITATION.cff)

# --------------------------------------------
# CITATION file created with {cffr} R package
# See also: https://docs.ropensci.org/cffr/
# --------------------------------------------
 
cff-version: 1.2.0
message: 'To cite package "RCzechia" in publications use:'
type: software
license: MIT
title: 'RCzechia: Spatial Objects of the Czech Republic'
version: 1.12.7
doi: 10.21105/joss.05082
identifiers:
- type: doi
  value: 10.32614/CRAN.package.RCzechia
abstract: Administrative regions and other spatial objects of the Czech Republic.
authors:
- family-names: Lacko
  given-names: Jindra
  email: jindra.lacko@gmail.com
  orcid: https://orcid.org/0000-0002-0375-5156
preferred-citation:
  type: article
  title: 'RCzechia: Spatial Objects of the Czech Republic'
  authors:
  - family-names: Lacko
    given-names: Jindra
    email: jindra.lacko@vse.cz
    orcid: https://orcid.org/0000-0002-0375-5156
  journal: Journal of Open Source Software
  year: '2023'
  volume: '8'
  issue: '83'
  url: https://joss.theoj.org/papers/10.21105/joss.05082
  doi: 10.21105/joss.05082
repository: https://CRAN.R-project.org/package=RCzechia
repository-code: https://github.com/jlacko/RCzechia
url: https://rczechia.jla-data.net
date-released: '2025-06-14'
contact:
- family-names: Lacko
  given-names: Jindra
  email: jindra.lacko@gmail.com
  orcid: https://orcid.org/0000-0002-0375-5156
keywords:
- czech-republic
- r
- shapefile
references:
- type: software
  title: 'R: A Language and Environment for Statistical Computing'
  notes: Depends
  url: https://www.R-project.org/
  authors:
  - name: R Core Team
  institution:
    name: R Foundation for Statistical Computing
    address: Vienna, Austria
  year: '2025'
  version: '>= 3.3.0'
- type: software
  title: sf
  abstract: 'sf: Simple Features for R'
  notes: Depends
  url: https://r-spatial.github.io/sf/
  repository: https://CRAN.R-project.org/package=sf
  authors:
  - family-names: Pebesma
    given-names: Edzer
    email: edzer.pebesma@uni-muenster.de
    orcid: https://orcid.org/0000-0001-8049-7069
  year: '2025'
  doi: 10.32614/CRAN.package.sf
- type: software
  title: terra
  abstract: 'terra: Spatial Data Analysis'
  notes: Imports
  url: https://rspatial.org/
  repository: https://CRAN.R-project.org/package=terra
  authors:
  - family-names: Hijmans
    given-names: Robert J.
    email: r.hijmans@gmail.com
    orcid: https://orcid.org/0000-0001-5872-2872
  year: '2025'
  doi: 10.32614/CRAN.package.terra
- type: software
  title: curl
  abstract: 'curl: A Modern and Flexible Web Client for R'
  notes: Imports
  url: https://jeroen.r-universe.dev/curl
  repository: https://CRAN.R-project.org/package=curl
  authors:
  - family-names: Ooms
    given-names: Jeroen
    email: jeroenooms@gmail.com
    orcid: https://orcid.org/0000-0002-4035-0289
  year: '2025'
  doi: 10.32614/CRAN.package.curl
- type: software
  title: httr
  abstract: 'httr: Tools for Working with URLs and HTTP'
  notes: Imports
  url: https://httr.r-lib.org/
  repository: https://CRAN.R-project.org/package=httr
  authors:
  - family-names: Wickham
    given-names: Hadley
    email: hadley@posit.co
  year: '2025'
  doi: 10.32614/CRAN.package.httr
- type: software
  title: jsonlite
  abstract: 'jsonlite: A Simple and Robust JSON Parser and Generator for R'
  notes: Imports
  url: https://jeroen.r-universe.dev/jsonlite
  repository: https://CRAN.R-project.org/package=jsonlite
  authors:
  - family-names: Ooms
    given-names: Jeroen
    email: jeroenooms@gmail.com
    orcid: https://orcid.org/0000-0002-4035-0289
  year: '2025'
  doi: 10.32614/CRAN.package.jsonlite
- type: software
  title: magrittr
  abstract: 'magrittr: A Forward-Pipe Operator for R'
  notes: Imports
  url: https://magrittr.tidyverse.org
  repository: https://CRAN.R-project.org/package=magrittr
  authors:
  - family-names: Bache
    given-names: Stefan Milton
    email: stefan@stefanbache.dk
  - family-names: Wickham
    given-names: Hadley
    email: hadley@rstudio.com
  year: '2025'
  doi: 10.32614/CRAN.package.magrittr
- type: software
  title: units
  abstract: 'units: Measurement Units for R Vectors'
  notes: Suggests
  url: https://r-quantities.github.io/units/
  repository: https://CRAN.R-project.org/package=units
  authors:
  - family-names: Pebesma
    given-names: Edzer
    email: edzer.pebesma@uni-muenster.de
    orcid: https://orcid.org/0000-0001-8049-7069
  - family-names: Mailund
    given-names: Thomas
    email: mailund@birc.au.dk
  - family-names: Kalinowski
    given-names: Tomasz
  - family-names: Ucar
    given-names: Iñaki
    email: iucar@fedoraproject.org
    orcid: https://orcid.org/0000-0001-6403-5550
  year: '2025'
  doi: 10.32614/CRAN.package.units
- type: software
  title: ggplot2
  abstract: 'ggplot2: Create Elegant Data Visualisations Using the Grammar of Graphics'
  notes: Suggests
  url: https://ggplot2.tidyverse.org
  repository: https://CRAN.R-project.org/package=ggplot2
  authors:
  - family-names: Wickham
    given-names: Hadley
    email: hadley@posit.co
    orcid: https://orcid.org/0000-0003-4757-117X
  - family-names: Chang
    given-names: Winston
    orcid: https://orcid.org/0000-0002-1576-2126
  - family-names: Henry
    given-names: Lionel
  - family-names: Pedersen
    given-names: Thomas Lin
    email: thomas.pedersen@posit.co
    orcid: https://orcid.org/0000-0002-5147-4711
  - family-names: Takahashi
    given-names: Kohske
  - family-names: Wilke
    given-names: Claus
    orcid: https://orcid.org/0000-0002-7470-9261
  - family-names: Woo
    given-names: Kara
    orcid: https://orcid.org/0000-0002-5125-4188
  - family-names: Yutani
    given-names: Hiroaki
    orcid: https://orcid.org/0000-0002-3385-7233
  - family-names: Dunnington
    given-names: Dewey
    orcid: https://orcid.org/0000-0002-9415-4582
  - family-names: Brand
    given-names: Teun
    name-particle: van den
    orcid: https://orcid.org/0000-0002-9335-7468
  year: '2025'
  doi: 10.32614/CRAN.package.ggplot2
- type: software
  title: tidyterra
  abstract: 'tidyterra: ''tidyverse'' Methods and ''ggplot2'' Helpers for ''terra''
    Objects'
  notes: Suggests
  url: https://dieghernan.github.io/tidyterra/
  repository: https://CRAN.R-project.org/package=tidyterra
  authors:
  - family-names: Hernangómez
    given-names: Diego
    email: diego.hernangomezherrero@gmail.com
    orcid: https://orcid.org/0000-0001-8457-4658
  year: '2025'
  doi: 10.32614/CRAN.package.tidyterra
- type: software
  title: knitr
  abstract: 'knitr: A General-Purpose Package for Dynamic Report Generation in R'
  notes: Suggests
  url: https://yihui.org/knitr/
  repository: https://CRAN.R-project.org/package=knitr
  authors:
  - family-names: Xie
    given-names: Yihui
    email: xie@yihui.name
    orcid: https://orcid.org/0000-0003-0645-5666
  year: '2025'
  doi: 10.32614/CRAN.package.knitr
- type: software
  title: testthat
  abstract: 'testthat: Unit Testing for R'
  notes: Suggests
  url: https://testthat.r-lib.org
  repository: https://CRAN.R-project.org/package=testthat
  authors:
  - family-names: Wickham
    given-names: Hadley
    email: hadley@posit.co
  year: '2025'
  doi: 10.32614/CRAN.package.testthat
- type: software
  title: roxygen2
  abstract: 'roxygen2: In-Line Documentation for R'
  notes: Suggests
  url: https://roxygen2.r-lib.org/
  repository: https://CRAN.R-project.org/package=roxygen2
  authors:
  - family-names: Wickham
    given-names: Hadley
    email: hadley@posit.co
    orcid: https://orcid.org/0000-0003-4757-117X
  - family-names: Danenberg
    given-names: Peter
    email: pcd@roxygen.org
  - family-names: Csárdi
    given-names: Gábor
    email: csardi.gabor@gmail.com
  - family-names: Eugster
    given-names: Manuel
  year: '2025'
  doi: 10.32614/CRAN.package.roxygen2
- type: software
  title: rmarkdown
  abstract: 'rmarkdown: Dynamic Documents for R'
  notes: Suggests
  url: https://pkgs.rstudio.com/rmarkdown/
  repository: https://CRAN.R-project.org/package=rmarkdown
  authors:
  - family-names: Allaire
    given-names: JJ
    email: jj@posit.co
  - family-names: Xie
    given-names: Yihui
    email: xie@yihui.name
    orcid: https://orcid.org/0000-0003-0645-5666
  - family-names: Dervieux
    given-names: Christophe
    email: cderv@posit.co
    orcid: https://orcid.org/0000-0003-4474-2498
  - family-names: McPherson
    given-names: Jonathan
    email: jonathan@posit.co
  - family-names: Luraschi
    given-names: Javier
  - family-names: Ushey
    given-names: Kevin
    email: kevin@posit.co
  - family-names: Atkins
    given-names: Aron
    email: aron@posit.co
  - family-names: Wickham
    given-names: Hadley
    email: hadley@posit.co
  - family-names: Cheng
    given-names: Joe
    email: joe@posit.co
  - family-names: Chang
    given-names: Winston
    email: winston@posit.co
  - family-names: Iannone
    given-names: Richard
    email: rich@posit.co
    orcid: https://orcid.org/0000-0003-3925-190X
  year: '2025'
  doi: 10.32614/CRAN.package.rmarkdown
- type: software
  title: dplyr
  abstract: 'dplyr: A Grammar of Data Manipulation'
  notes: Suggests
  url: https://dplyr.tidyverse.org
  repository: https://CRAN.R-project.org/package=dplyr
  authors:
  - family-names: Wickham
    given-names: Hadley
    email: hadley@posit.co
    orcid: https://orcid.org/0000-0003-4757-117X
  - family-names: François
    given-names: Romain
    orcid: https://orcid.org/0000-0002-2444-4226
  - family-names: Henry
    given-names: Lionel
  - family-names: Müller
    given-names: Kirill
    orcid: https://orcid.org/0000-0002-1416-3412
  - family-names: Vaughan
    given-names: Davis
    email: davis@posit.co
    orcid: https://orcid.org/0000-0003-4777-038X
  year: '2025'
  doi: 10.32614/CRAN.package.dplyr
- type: software
  title: s2
  abstract: 's2: Spherical Geometry Operators Using the S2 Geometry Library'
  notes: Suggests
  url: https://r-spatial.github.io/s2/
  repository: https://CRAN.R-project.org/package=s2
  authors:
  - family-names: Dunnington
    given-names: Dewey
    email: dewey@fishandwhistle.net
    orcid: https://orcid.org/0000-0002-9415-4582
  - family-names: Pebesma
    given-names: Edzer
    email: edzer.pebesma@uni-muenster.de
    orcid: https://orcid.org/0000-0001-8049-7069
  - family-names: Rubak
    given-names: Ege
    email: rubak@math.aau.dk
  year: '2025'
  doi: 10.32614/CRAN.package.s2
- type: software
  title: lwgeom
  abstract: 'lwgeom: Bindings to Selected ''liblwgeom'' Functions for Simple Features'
  notes: Suggests
  url: https://r-spatial.github.io/lwgeom/
  repository: https://CRAN.R-project.org/package=lwgeom
  authors:
  - family-names: Pebesma
    given-names: Edzer
    email: edzer.pebesma@uni-muenster.de
    orcid: https://orcid.org/0000-0001-8049-7069
  year: '2025'
  doi: 10.32614/CRAN.package.lwgeom
- type: software
  title: covr
  abstract: 'covr: Test Coverage for Packages'
  notes: Suggests
  url: https://covr.r-lib.org
  repository: https://CRAN.R-project.org/package=covr
  authors:
  - family-names: Hester
    given-names: Jim
    email: james.f.hester@gmail.com
  year: '2025'
  doi: 10.32614/CRAN.package.covr

GitHub Events

Total
  • Issues event: 5
  • Watch event: 2
  • Delete event: 11
  • Issue comment event: 9
  • Push event: 34
  • Pull request review event: 2
  • Pull request event: 28
  • Create event: 11
Last Year
  • Issues event: 5
  • Watch event: 2
  • Delete event: 11
  • Issue comment event: 9
  • Push event: 34
  • Pull request review event: 2
  • Pull request event: 28
  • Create event: 11

Committers

Last synced: 10 months ago

All Time
  • Total Commits: 426
  • Total Committers: 2
  • Avg Commits per committer: 213.0
  • Development Distribution Score (DDS): 0.002
Past Year
  • Commits: 18
  • Committers: 1
  • Avg Commits per committer: 18.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Jindra Lacko j****o@g****m 425
Kirill Müller k****r 1

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 35
  • Total pull requests: 92
  • Average time to close issues: about 1 month
  • Average time to close pull requests: about 2 hours
  • Total issue authors: 13
  • Total pull request authors: 3
  • Average comments per issue: 2.4
  • Average comments per pull request: 0.12
  • Merged pull requests: 86
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 3
  • Pull requests: 25
  • Average time to close issues: 2 days
  • Average time to close pull requests: about 3 hours
  • Issue authors: 3
  • Pull request authors: 1
  • Average comments per issue: 2.33
  • Average comments per pull request: 0.0
  • Merged pull requests: 21
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • jlacko (17)
  • nickbearman (5)
  • petrbouchal (3)
  • edzer (2)
  • tlichard (1)
  • do-me (1)
  • FHabarta (1)
  • ChrisMUC83 (1)
  • krlmlr (1)
  • skvrnami (1)
  • jcrichardson617 (1)
  • Danica-Cortez (1)
  • gwselke (1)
Pull Request Authors
  • jlacko (98)
  • krlmlr (2)
  • nickbearman (1)
Top Labels
Issue Labels
enhancement (10) bug (6) question (3)
Pull Request Labels

Dependencies

DESCRIPTION cran
  • R >= 3.3.0 depends
  • sf * depends
  • curl * imports
  • httr * imports
  • jsonlite * imports
  • magrittr * imports
  • covr * suggests
  • devtools * suggests
  • dplyr * suggests
  • ggplot2 * suggests
  • knitr * suggests
  • lwgeom * suggests
  • raster * suggests
  • readxl * suggests
  • rmarkdown * suggests
  • roxygen2 * suggests
  • rvest * suggests
  • s2 * suggests
  • scales * suggests
  • stringr * suggests
  • testthat * suggests
  • units * suggests
  • xml2 * suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v3 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/coverage.yaml actions
  • actions/checkout v3 composite
  • actions/upload-artifact v3 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
data-raw/Dockerfile docker
  • rocker/rstudio 4.1.0 build