combos_proposal_arguments: Get referendum proposal combinations for which arguments have...

combos_proposal_argumentsR Documentation

Get referendum proposal combinations for which arguments have been queried

Description

Returns a list with a metadata item per ballot date, political level, canton, proposal number and optionally proposal argument side (pro/contra) and number.

Usage

combos_proposal_arguments(
  ballot_dates = all_ballot_dates,
  lvls = all_lvls,
  cantons = all_cantons,
  incl_side = TRUE,
  incl_argument_nr = incl_side
)

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_side

Whether or not to include argument sides (pro/contra) in the resulting list. Setting this to FALSE potentially results in fewer combinations.

incl_argument_nr

Whether or not to include argument numbers in the resulting list. Setting this to FALSE potentially results in fewer combinations. Setting this to TRUE implies incl_side = TRUE.

Value

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

See Also

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

Other proposal predicate functions: argument_proposal_nrs(), combos_proposal_main_motives(), combos_proposals(), has_proposal_arguments(), has_proposal_main_motives(), is_proposal_name_plural(), main_motive_proposal_nrs(), n_proposal_arguments(), n_proposal_main_motives(), proposal_argument(), proposal_arguments(), proposal_main_motives(), proposal_name(), proposal_name_gender(), proposal_type()

Examples

fokus::combos_proposal_arguments(ballot_dates = "2023-06-18",
                                 cantons = "aargau")
# without argument numbers
fokus::combos_proposal_arguments(ballot_dates = "2023-06-18",
                                 cantons = "aargau",
                                 incl_argument_nr = FALSE)
# without argument sides and numbers
fokus::combos_proposal_arguments(ballot_dates = "2023-06-18",
                                 cantons = "aargau",
                                 incl_side = FALSE,
                                 incl_argument_nr = FALSE)

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