val_lbls | R Documentation |
Returns a character vector of value labels of a specific rfrnds()
column, in the same order as var_vals()
, or of length 0
if var_name
's values are
not restricted to a predefined set or no value labels are defined in the codebook.
val_lbls(var_name, incl_affixes = TRUE)
var_name |
Variable name present in |
incl_affixes |
Whether or not to add the corresponding |
A character vector. Of length 0
if var_name
's values are not restricted to a predefined set or no value labels are defined in the
codebook.
Other referendum metadata functions:
data_codebook
,
prettify_var_names()
,
val_scale()
,
var_name_unnested()
,
var_vals()
rdb::val_lbls("result",
incl_affixes = FALSE)
rdb::val_lbls("result")
# Convert the labels to sentence case with trailing dot
rdb::val_lbls("result") |> pal::sentenceify()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.