var_lvls | R Documentation |
Determines political level(s) of one or more variables.
var_lvls(var_names)
var_names |
A character vector of FOKUS variable names. |
Note that the political levels are determined by simply parsing var_names
.
A character vector of political levels, of length 0 if no specific levels could be determined.
Other variable-related functions:
add_vars_to_combos()
,
is_skill_question_var()
,
var_election_nr()
,
var_lbl()
,
var_prcd()
,
var_proposal_nr()
,
var_skill_question_nr()
,
var_title()
,
var_val_set()
fokus::qstnrs |>
dplyr::mutate(lvls = purrr::map(variable_name,
fokus::var_lvls)) |>
dplyr::filter(purrr::map_lgl(lvls,
\(x) length(x) > 0)) |>
dplyr::select(variable_name, lvls) |>
tidyr::unnest_longer(col = lvls,
values_to = "lvl") |>
unique()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.