combos_ballot_types: Get ballot type combinations

combos_ballot_typesR Documentation

Get ballot type combinations

Description

Returns a list with a metadata item per ballot type, ballot date, canton and optionally political level.

Usage

combos_ballot_types(
  ballot_dates = all_ballot_dates,
  lvls = all_lvls,
  cantons = all_cantons,
  ballot_types = all_ballot_types,
  incl_lvl = TRUE
)

Arguments

ballot_dates

FOKUS-covered ballot date(s). One or more 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".

cantons

FOKUS-covered canton name(s). One or more of

  • "aargau"

ballot_types

Ballot type(s). One or more of "referendum" or "election"

incl_lvl

Whether or not to include the political levels in the resulting list. Setting this to FALSE potentially results in fewer combinations.

Value

A list with an element per ballot-type and optionally -political-level combination.

See Also

Other combination functions: add_vars_to_combos(), combos_elections(), combos_proposal_arguments(), combos_proposal_main_motives(), combos_proposals()

Other fundamental predicate functions: ballot_types(), cantons(), election_nrs(), election_prcds(), has_ballot_type(), has_election(), has_election_nrs(), has_lvl(), has_proposal_nrs(), has_referendum(), is_representative(), lvls(), n_elections(), n_proposals(), prcds(), proposal_nrs(), proposal_qstn_groups(), qstn_groups_proposal_nrs(), survey_channels()

Examples

# of all covered ballots
fokus::combos_ballot_types()

# only of 2023-06-18 ballot in aargau
fokus::combos_ballot_types(ballot_dates = "2023-06-18",
                           cantons = "aargau")

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