election_names_combined: Get combined elections name

election_names_combinedR Documentation

Get combined elections name

Description

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" or "en".

federal_first

Whether or not to list federal elections before cantonal ones. Only has an effect if "federal" %in% lvls.

Value

A character scalar, empty if no elections were held.

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")

fokus::election_names_combined(ballot_date = "2019-10-20",
                               canton = "aargau")

fokus::election_names_combined(ballot_date = "2019-10-20",
                               canton = "aargau",
                               federal_first = FALSE)

zdaarau/fokus documentation built on Dec. 24, 2024, 10:47 p.m.