Convert variable according to the Standard for dataset of CR in China
tidy_var(
x,
var_name = "occu",
label_type = "full",
lang = "code",
as_factor = FALSE
)
Character values of variable to be converted.
Character value indicate name of the variable.
Type of the label used ("full" or "abbr").
Character, specify the output language, options are 'cn', or 'en', default is 'cn'.
Logical, indicate whether output value as factor.
A formatted value.