export_easyvote_municipalities | R Documentation |
Exports a CSV dataset containing the columns municipality
, municipality_id
, min_age
and max_age
to the private FOKUS repository.
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
)
ballot_date |
FOKUS-covered ballot date. One of
|
canton |
FOKUS-covered canton name. One of
|
upload_to_g_drive |
Whether or not to upload the generated files to the Google Drive folder |
g_drive_folder |
Google Drive folder to upload the generated files to. Ignored if |
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. |
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 |
A tibble of the exported data, invisibly.
Other data export functions:
export_print_recipients()
,
export_qr_codes()
,
export_qstnr()
,
export_survey_data()
,
write_private_file()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.