Count the municipalities for a set of dates. Either at the national or cantonal level. See vignette for details.
Arguments
- mutations
A tibble containing the municipality mutations inventory (see
import_CH_municipality_inventory)- dates
A Date object vector
- geo_level
Either "ch" or "cantons".
- include_cant_lakes
Boolean, TRUE to also include lakes in the count.
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.