Description Usage Arguments Examples
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.
1 2 | dis.template(year, add_geodata_path = ".", endofyear = FALSE,
cantons = NULL, districts = NULL)
|
year |
numeric. Available with package: |
add_geodata_path |
a character string with the path to the folder where additional geodata is saved. |
endofyear |
if |
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. |
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"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.