Skip to contents

Returns a list with a metadata item per ballot date, political level, canton, proposal number and optionally motive type for which main motives have been queried in the respective post-voting survey.

Usage

combos_proposal_main_motives(
  ballot_dates = all_ballot_dates,
  lvls = all_lvls,
  cantons = all_cantons,
  incl_type = 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"

incl_type

Whether or not to include motive types (yes/no) in the resulting list. Setting this to FALSE potentially results in fewer combinations.

Value

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

Examples

fokus::combos_proposal_main_motives(ballot_dates = "2023-06-18",
                                    cantons = "aargau")
#> [[1]]
#> [[1]]$ballot_date
#> [1] "2023-06-18"
#> 
#> [[1]]$lvl
#> [1] "cantonal"
#> 
#> [[1]]$canton
#> [1] "aargau"
#> 
#> [[1]]$proposal_nr
#> [1] 1
#> 
#> [[1]]$type
#> [1] "yes"
#> 
#> 
#> [[2]]
#> [[2]]$ballot_date
#> [1] "2023-06-18"
#> 
#> [[2]]$lvl
#> [1] "cantonal"
#> 
#> [[2]]$canton
#> [1] "aargau"
#> 
#> [[2]]$proposal_nr
#> [1] 1
#> 
#> [[2]]$type
#> [1] "no"
#> 
#> 
#> [[3]]
#> [[3]]$ballot_date
#> [1] "2023-06-18"
#> 
#> [[3]]$lvl
#> [1] "cantonal"
#> 
#> [[3]]$canton
#> [1] "aargau"
#> 
#> [[3]]$proposal_nr
#> [1] 3
#> 
#> [[3]]$type
#> [1] "yes"
#> 
#> 
#> [[4]]
#> [[4]]$ballot_date
#> [1] "2023-06-18"
#> 
#> [[4]]$lvl
#> [1] "cantonal"
#> 
#> [[4]]$canton
#> [1] "aargau"
#> 
#> [[4]]$proposal_nr
#> [1] 3
#> 
#> [[4]]$type
#> [1] "no"
#> 
#> 
#> [[5]]
#> [[5]]$ballot_date
#> [1] "2023-06-18"
#> 
#> [[5]]$lvl
#> [1] "federal"
#> 
#> [[5]]$canton
#> [1] "aargau"
#> 
#> [[5]]$proposal_nr
#> [1] 2
#> 
#> [[5]]$type
#> [1] "yes"
#> 
#> 
#> [[6]]
#> [[6]]$ballot_date
#> [1] "2023-06-18"
#> 
#> [[6]]$lvl
#> [1] "federal"
#> 
#> [[6]]$canton
#> [1] "aargau"
#> 
#> [[6]]$proposal_nr
#> [1] 2
#> 
#> [[6]]$type
#> [1] "no"
#> 
#> 
# without types
fokus::combos_proposal_main_motives(ballot_dates = "2023-06-18",
                                    cantons = "aargau",
                                    incl_type = FALSE)
#> [[1]]
#> [[1]]$ballot_date
#> [1] "2023-06-18"
#> 
#> [[1]]$lvl
#> [1] "cantonal"
#> 
#> [[1]]$canton
#> [1] "aargau"
#> 
#> [[1]]$proposal_nr
#> [1] 1
#> 
#> 
#> [[2]]
#> [[2]]$ballot_date
#> [1] "2023-06-18"
#> 
#> [[2]]$lvl
#> [1] "cantonal"
#> 
#> [[2]]$canton
#> [1] "aargau"
#> 
#> [[2]]$proposal_nr
#> [1] 3
#> 
#> 
#> [[3]]
#> [[3]]$ballot_date
#> [1] "2023-06-18"
#> 
#> [[3]]$lvl
#> [1] "federal"
#> 
#> [[3]]$canton
#> [1] "aargau"
#> 
#> [[3]]$proposal_nr
#> [1] 2
#> 
#>