Learn R Programming

volker (version 2.1.0)

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

Description

[Experimental]

Usage

labs_store(data)

Value

A data frame.

Arguments

data

A data frame.

Details

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

Examples

Run this code
library(dplyr)
library(volker)

volker::chatgpt |>
  labs_store() |>
  mutate(sd_age = 2024 - sd_age) |>
  labs_restore() |>
  tab_metrics(sd_age)

Run the code above in your browser using DataLab