mun.template: Generating templates for municipality-level data of...

Description Usage Arguments Examples

Description

mun.template offers the possbility to generate Swiss municipality-level data templates in the form of data frames. The package comes with data for 2016. Additional data can be downloaded with map.load. The templates contain the municipality identification numbers as used by the Swiss Federal Statistical Office and the municipality names.

Usage

1
2
mun.template(year, add_geodata_path = ".", endofyear = FALSE,
  cantons = NULL, districts = NULL, municipalities = NULL)

Arguments

year

numeric. Available with package: 2016. For additional years, see: map.load.

add_geodata_path

a character string with the path to the folder where additional geodata is saved.

endofyear

if TRUE, municipalities as by December 31 of year are used for the template.

cantons

input either numeric (canton identification numbers) or character (canton abbreviations) vector to create canton-specific templates.

districts

input either numeric (district identification numbers) or character (district names) vector to create district-specific templates.

municipalities

input either numeric (municipality identification numbers) or character (municipality names) vector to create tailor-made templates.

Examples

1
2
3
4
5
# Generating template:
mun.template(2016)

# Generating template for the municipalities of the canton of Aargau:
mun.template(2016, cantons = c("AG", "ZH"))

RSwissMaps documentation built on June 10, 2019, 1:02 a.m.