Description Usage Arguments Details See Also Examples
View source: R/label_harmonize.R
label_normalize
removes special characters, whitespace,
and other typical typing errors.
1 2 3 4 5 |
x |
A character vector of labels to be normalized. |
var_label_normalize
changes the vector to snake_case.
val_label_normalize
removes possible chunks from question
identifiers.
The functions var_label_normalize
and
val_label_normalize
may
be differently implemented for various survey series.
Other variable label harmonization functions:
harmonize_values()
,
harmonize_waves()
,
na_range_to_values()
Other harmonization functions:
collect_val_labels()
,
harmonize_na_values()
,
harmonize_values()
,
harmonize_var_names()
,
suggest_permanent_names()
,
suggest_var_names()
Other harmonization functions:
collect_val_labels()
,
harmonize_na_values()
,
harmonize_values()
,
harmonize_var_names()
,
suggest_permanent_names()
,
suggest_var_names()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | label_normalize (
c("Don't know", " TRUST", "DO NOT TRUST",
"inap in Q.3", "Not 100%", "TRUST < 50%",
"TRUST >=90%", "Verify & Check", "TRUST 99%+"))
var_label_normalize (
c("Q1_Do you trust the national government?",
" Do you trust the European Commission")
)
val_label_normalize (
c("Q1_Do you trust the national government?",
" Do you trust the European Commission")
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.