municipality_counter {SMMT} | R Documentation |
Municipality counter
Description
Count the municipalities for a set of dates. Either at the national or cantonal level. See vignette for details.
Usage
municipality_counter(
mutations,
dates,
geo_level = "ch",
include_cant_lakes = FALSE
)
Arguments
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. |
Value
A tibble with the municipality count per date and specified geography.
Note
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.
[Package SMMT version 1.2.0 Index]