View source: R/get_merger_mapping_table.R
swc_get_merger_mapping_table | R Documentation |
Produces a mapping table that can be joined to your data. Municipalities that were merged to another municipality during the given time period are mapped to that municipality. Filtering by canton is supported.
swc_get_merger_mapping_table(
start_year,
end_year,
canton = NULL,
type = "flat"
)
start_year |
First year of time interval (integer) |
end_year |
Last year of time interval (integer) |
canton |
Canton abbreviation as character (e.g. "GE", "ZH", "TI", etc.) to focus on. If left 'NULL' (default) all cantons are considered. |
type |
Two options: - "flat" (default) returns the table with one row per year per mapping - "compact" returns a more compact table with one row per mapping, containing the time interval it is valid for |
Mapping table for the given time interval in the specified canton
swc_get_merger_mapping_table(2005, 2010)
swc_get_merger_mapping_table(2015, 2019, canton = "ZH", type = "compact")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.