Exports a CSV dataset containing the columns municipality
, municipality_id
, min_age
and max_age
to the private FOKUS repository.
Usage
export_easyvote_municipalities(
ballot_date = pal::pkg_config_val("ballot_date"),
canton = cantons(ballot_date),
upload_to_g_drive = TRUE,
g_drive_folder =
glue::glue("fokus/{canton}/Umfragen/Dateien für Umfrageinstitut/easyvote-Gemeinden/"),
auth_token = pal::pkg_config_val("token_repo_private"),
quiet = FALSE,
verbose = FALSE
)
Arguments
- ballot_date
FOKUS-covered ballot date. One of
"2018-09-23"
"2018-11-25"
"2019-10-20"
"2020-09-27"
"2020-10-18"
"2021-11-28"
"2023-06-18"
"2024-10-20"
- canton
FOKUS-covered canton name. One of
"aargau"
- upload_to_g_drive
Whether or not to upload the generated files to the Google Drive folder
g_drive_folder
.- g_drive_folder
Google Drive folder to upload the generated files to. Ignored if
upload_to_g_drive = FALSE
.- auth_token
Personal access token of a gitlab.com account with access to the private FOKUS repository.
- quiet
Whether or not to suppress printing status output from internal processing.
- verbose
Whether or not to print detailed status output from Google Drive file upload.
Value
A tibble of the exported data, invisibly.
Details
The meaning of the individual columns is as follows:
column name | description |
municipality | official name of the municipality |
municipality_id | official Swiss community identification number (also called "GEOSTAT"/"BFS" number, see the corresponding German Wikipedia article) |
min_age | lower age limit of the municipal subscription of the "easyvote" booklet |
max_age | upper age limit of the municipal subscription of the "easyvote" booklet |
See also
Other data export functions:
export_print_recipients()
,
export_qr_codes()
,
export_qstnr()
,
write_private_file()