https://github.com/valvaletl/smmt
R tool to get municipality mapping table between two time points for Swiss municipalities
https://github.com/valvaletl/smmt
cran data-management municipalities r statistics switzerland
Last synced: 4 months ago
JSON representation
R tool to get municipality mapping table between two time points for Swiss municipalities
- Host: GitHub
- URL: https://github.com/valvaletl/smmt
- Owner: ValValetl
- Created: 2021-02-15T15:53:24.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-19T17:40:50.000Z (about 2 years ago)
- Last Synced: 2025-12-09T11:42:58.354Z (7 months ago)
- Topics: cran, data-management, municipalities, r, statistics, switzerland
- Language: R
- Homepage: https://cran.r-project.org/package=SMMT
- Size: 1.6 MB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.Rmd
Awesome Lists containing this project
README
---
output: github_document
---
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/"
)
```
# Swiss Municipality Data Merger Tool
## Introduction
The SMMT is an R Package which helps merge municipal level data sets available for different points in time.
If you ever worked with Swiss municipal-level data, you almost certainly encountered the issue that the municipal state of your dataset is not the one you desired. E.g. it's not the actual municpial state or it does not match the state of a second dataset.
This R package helps to bring the municipal states together.
A good starting point is [this vignette article](https://smmt.valentinknechtl.ch/articles/manual.html).
The Swiss Municipal Data Merger Tool automatically detects these mutations and maps municipalities over time, i.e. municipalities of an old state to municipalities of a new state. This functionality is helpful when working with datasets that are based on different spatial references like for example Swiss voting data.
## Installation
```{r, eval = FALSE}
# Install released version from CRAN
install.packages("SMMT")
```
```{r, eval = FALSE}
# Install most recent version from github.
devtools::install_github("ValValetl/SMMT")
```
## Get started
* Read the vignette `vignette("manual")` / [online](https://smmt.valentinknechtl.ch/articles/manual.html)
* Look up the documentation of `?map_old_to_new_state`
## Resources
* SMMT on [CRAN](https://cran.r-project.org/package=SMMT)
* For more background details, see [this article](https://onlinelibrary.wiley.com/doi/full/10.1111/spsr.12487) in the Swiss Political Science Review.
## Further documentation
* [eCH-0071 Datenstandard Historisiertes Gemeindeverzeichnis der Schweiz](https://ech.ch/de/ech/ech-0071/1.2.0): The Swiss municipal inventory is a well documented data standard which can be consulted at this webpage.