Skip to contents

Determines political level(s) of one or more variables.

Usage

var_lvls(var_names)

Arguments

var_names

A character vector of FOKUS variable names.

Value

A character vector of political levels, of length 0 if no specific levels could be determined.

Details

Note that the political levels are determined by simply parsing var_names.

See also

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"