phrase_election_candidate | R Documentation |
Assembles one or more majoritarian election candidate strings consisting of the candidate's first name, last name and optionally political party (in parentheses).
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
)
ballot_date |
FOKUS-covered ballot date. One of
|
lvl |
Political level. One of |
canton |
FOKUS-covered canton name. One of
|
election_nr |
Election number. A positive integerish scalar. |
candidate_nrs |
Election candidate numbers to include. A vector of positive integers or |
incl_party |
Whether or not to include the candidate's political party in the resulting string (in parentheses). |
A character vector.
Other text phrasing functions:
phrase()
,
phrase_date()
,
phrase_proposal_name_de()
fokus::phrase_election_candidate(ballot_date = "2019-10-20",
lvl = "cantonal",
canton = "aargau",
candidate_nrs = 1:3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.