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)
| x | A vector of the (GESIS) variable or value labels |
|---|
A character vector with the normalized labels
Other naming functions:
val_label_normalize(),
var_label_normalize()
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"