Description Usage Arguments Examples
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.
1 2 | mun.template(year, add_geodata_path = ".", endofyear = FALSE,
cantons = NULL, districts = NULL, municipalities = 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 district-specific templates. |
municipalities |
input either numeric (municipality identification numbers) or character (municipality names) vector to create tailor-made templates. |
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"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.