labs_store: Get the current codebook and store it in the codebook...

View source: R/labels.R

labs_storeR Documentation

Get the current codebook and store it in the codebook attribute.

Description

[Experimental]

Usage

labs_store(data)

Arguments

data

A data frame.

Details

You can restore the labels after mutate operations by calling labs_restore.

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)

volker documentation built on April 12, 2025, 9:16 a.m.