read_voting_register_ids | R Documentation |
Reads in the voting register identifiers of the population that was invited to participate in the FOKUS survey at the specified ballot date in the specified canton.
read_voting_register_ids(
ballot_date = pal::pkg_config_val("ballot_date"),
canton = cantons(ballot_date),
use_cache = TRUE,
auth_token = pal::pkg_config_val("token_repo_private")
)
ballot_date |
FOKUS-covered ballot date. One of
|
canton |
FOKUS-covered canton name. One of
|
use_cache |
Whether or not to return cached results if possible. Caching is done based on file content hashing, so the file is only newly fetched if it
actually changed since the last download. If |
auth_token |
Personal access token of a gitlab.com account with access to the private FOKUS repository. |
Note that this data is not available for all FOKUS surveys.
A tibble with the column id_voting_register
.
Other data import functions:
read_easyvote_municipalities()
,
read_online_participation_codes()
,
read_private_file()
,
read_survey_data()
,
read_voting_register_data_extra()
,
tidy_cols()
# GitLab PAT with access to the private FOKUS repository is required for this function to work
try(
fokus::read_voting_register_ids(ballot_date = "2019-10-20",
canton = "aargau") |>
nrow()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.