can.template: Generating templates for canton-level data of Switzerland

Description Usage Arguments Examples

Description

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

Usage

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

Examples

1
2
# Generating template:
can.template(2016)

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