Assembles one or more majoritarian election candidate strings consisting of the candidate's first name, last name and optionally political party (in parentheses).
Usage
phrase_election_candidate(
ballot_date = pal::pkg_config_val("ballot_date"),
lvl = lvls(ballot_date, canton, ballot_type = "election"),
canton = cantons(ballot_date),
election_nr = 1L,
candidate_nrs = NULL,
incl_party = 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"
- lvl
Political level. One of
"cantonal"
or"federal"
.- canton
FOKUS-covered canton name. One of
"aargau"
- election_nr
Election number. A positive integerish scalar.
- candidate_nrs
Election candidate numbers to include. A vector of positive integers or
NULL
. IfNULL
, all candidates will be included.- incl_party
Whether or not to include the candidate's political party in the resulting string (in parentheses).
See also
Other text phrasing functions:
phrase()
,
phrase_date()
,
phrase_proposal_name_de()