labs_restore {volker} | R Documentation |
labs_restore(data, cols = NULL, values = TRUE)
data |
A data frame. |
cols |
A tidyselect column selection. |
values |
If TRUE (default), restores value labels in addition to item labels. Item labels correspond to columns, value labels to values in the columns. |
You can store labels before mutate operations by calling labs_store.
A data frame.
library(dplyr)
library(volker)
volker::chatgpt |>
labs_store() |>
mutate(sd_age = 2024 - sd_age) |>
labs_restore() |>
tab_metrics(sd_age)