var_election_nr | R Documentation |
Determines the election number each variable corresponds to. In case no election number could be determined for a variable, NA_character
is returned.
var_election_nr(var_names)
var_names |
A character vector of FOKUS variable names. |
Note that the determination is performed by simply parsing var_names
.
An integer vector of the same length as var_names
.
Other variable-related functions:
add_vars_to_combos()
,
is_skill_question_var()
,
var_lbl()
,
var_lvls()
,
var_prcd()
,
var_proposal_nr()
,
var_skill_question_nr()
,
var_title()
,
var_val_set()
fokus::qstnrs |>
dplyr::mutate(election_nr = fokus::var_election_nr(variable_name)) |>
dplyr::filter(!is.na(election_nr)) |>
dplyr::select(variable_name, election_nr) |>
unique()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.