swc_get_municipality_state: Existing municipalities in a specified year

View source: R/get_municipality_state.R

swc_get_municipality_stateR Documentation

Existing municipalities in a specified year

Description

This function produces a tibble containing the names and BFS-numbers (official municipality numbers) of all existing municipalities in a given year. Filtering by canton is supported.

Usage

swc_get_municipality_state(year, canton = NULL)

Arguments

year

Year of interest (integer).

canton

Canton abbreviation as character (e.g. "GE", "ZH", "TI", etc.) to focus on. If left 'NULL' (default) all cantons are considered.

Value

Tibble containing municipality numbers (BFS-numbers) and names of existing municipalities in the given year.

Examples

swc_get_municipality_state(1987)
swc_get_municipality_state(2000, "ZH")

cynkra/munch documentation built on Dec. 15, 2024, 6:06 a.m.