View source: R/municipality_counter.R
municipality_counter | R Documentation |
Count the municipalities for a set of dates. Either at the national or cantonal level. See vignette for details.
municipality_counter(
mutations,
dates,
geo_level = "ch",
include_cant_lakes = FALSE
)
mutations |
A tibble containing the municipality mutations inventory
(see |
dates |
A Date object vector |
geo_level |
Either "ch" or "cantons". |
include_cant_lakes |
Boolean, TRUE to also include lakes in the count. |
A tibble with the municipality count per date and specified geography.
All entities that have a bfs nr are counted (e.g. also Gemeindefreie Gebiete). This is not exactly what the BfS does in the webtool Applikation der Schweizer Gemeinden. However, it is not possible to distinguish "Gemeinden" und "Gemeindefreie Gebiete" generically, based on the information in the Gemeindeverzeichnis.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.