Skip to contents

Converts character question values to their integer code counterparts. The latter are useful mainly because they're language-independent.

Usage

as_int_vals(var, qstnr = funky::config_val(key = "cur_qstnr"))

Arguments

var

Variable holding the question values. A character vector with an id and a lang attribute.

qstnr

TODO

Value

An integer vector of the same length as var.

See also

Other auxiliary functions: common_val_scale(), group_title(), val_set()