Remove relative reference to question blocks, special characters used in regular expressions, whitespace and bring the variable and value labels to snake_case_format.

label_normalize(x)

Arguments

x

A vector of the (GESIS) variable or value labels

Value

A character vector with the normalized labels

See also

Other naming functions: val_label_normalize(), var_label_normalize()

Examples

label_normalize ( c("QA17_1 EUROPEAN PARLIAMENT - TRUST", "QA13_1 TRUST IN INSTITUTIONS: NAT GOVERNMENT" ) )
#> [1] "european_parliament_trust" #> [2] "trust_in_institutions_nat_government"