Determines political level(s) of one or more variables.
Value
A character vector of political levels, of length 0 if no specific levels could be determined.
See also
Other variable-related functions:
add_vars_to_combos()
,
is_skill_question_var()
,
var_lbl()
,
var_proposal_nr()
,
var_skill_question_nr()
,
var_title()
,
var_val_set()
Examples
fokus::var_lvls("skill_question_1_cantonal_proposal_1")
#> [1] "cantonal"
fokus::var_lvls(c("skill_question_1_cantonal_proposal_1",
"skill_question_1_federal_proposal_1"))
#> [1] "cantonal" "federal"