prettify_var_names | R Documentation |
Converts referendum data variable names to their ready-for-publication version. Variable names that are unknown, i.e. not present in data_codebook
), are
left untouched.
prettify_var_names(var_names)
var_names |
Variable name(s). Those not present in |
A character vector of the same length as var_names
.
Other referendum metadata functions:
data_codebook
,
val_lbls()
,
val_scale()
,
var_name_unnested()
,
var_vals()
Other functions to prettify names:
prettify_col_names()
rdb::prettify_var_names("topics_tier_1")
# also supports unnested var names
rdb::prettify_var_names("topic_tier_1")
# unknown var names are left untouched
rdb::prettify_var_names(var_names = c("topic_tier_1", "topic_tier_99"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.