powered by
Converts the values of categorical/factor columns (e.g., "1", "2") to their labels (e.g., "Male", "Female"). The value labels will be set to the values.
"1"
"2"
"Male"
"Female"
transf_value_to_label(data, transf_sess_id = FALSE)
A tibble with factor columns transformed to labels.
tibble. The labelled dataset
logical. Whether to transform the session_id column
session_id
The data must be type transformed and labelled. See transf_factor() and transf_label() for details.
transf_factor()
transf_label()
data <- data |> transf_factor() |> transf_label()
if (FALSE) { transf_value_to_label(data) transf_value_to_label(data, value_to_na = TRUE) }
Run the code above in your browser using DataLab