dis.template: Generating templates for district-level data of Switzerland

Description Usage Arguments Examples

Description

dis.template offers the possbility to generate Swiss district-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 district identification numbers as used by the Swiss Federal Statistical Office and the district names.

Usage

1
2
dis.template(year, add_geodata_path = ".", endofyear = FALSE,
  cantons = NULL, districts = 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, districts 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 tailor-made templates.

Examples

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

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

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