labs_restore {volker} | R Documentation |
Restore labels from the codebook store in the codebook attribute.
Description
Usage
labs_restore(data, cols = NULL)
Arguments
data |
A data frame. |
cols |
A tidyselect column selection. |
Details
You can store labels before mutate operations by calling labs_store.
Value
A data frame.
Examples
library(dplyr)
library(volker)
volker::chatgpt |>
labs_store() |>
mutate(sd_age = 2024 - sd_age) |>
labs_restore() |>
tab_metrics(sd_age)
[Package volker version 3.1.0 Index]