Returns the combined name of all elections at the specified date on the specified level(s) for the specified canton in the specified language.
Usage
election_names_combined(
ballot_date = pal::pkg_config_val("ballot_date"),
lvls = all_lvls,
canton = cantons(ballot_date),
lang = pal::pkg_config_val("lang"),
federal_first = TRUE
)
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"
- lvls
Political level(s). One or more of
"cantonal"
and"federal"
.- canton
FOKUS-covered canton name. One of
"aargau"
- lang
Language. One of
"de"
.- federal_first
Whether or not to list federal elections before cantonal ones. Only has an effect if
"federal" %in% lvls
.
See also
Other election predicate functions:
combos_elections()
,
election_candidates()
,
election_name()
,
election_parties()
,
election_tickets()
,
n_election_candidates()
,
n_election_seats()
,
past_election_date()
,
requires_candidate_registration()
Examples
fokus::election_names_combined(ballot_date = "2019-10-20",
lvls = "federal",
canton = "aargau")
#> [1] "National- und Ständeratswahlen"
fokus::election_names_combined(ballot_date = "2019-10-20",
canton = "aargau")
#> [1] "National- und Ständeratswahlen sowie Regierungsratsersatzwahl"
fokus::election_names_combined(ballot_date = "2019-10-20",
canton = "aargau",
federal_first = FALSE)
#> [1] "Regierungsratsersatzwahl sowie National- und Ständeratswahlen"