Skip to contents

[Experimental]

Usage

labs_store(data)

Arguments

data

A data frame.

Value

A data frame.

Details

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

Examples

library(dplyr)
library(volker)

volker::chatgpt |>
  labs_store() |>
  mutate(sd_age = 2024 - sd_age) |>
  labs_restore() |>
  tab_metrics(sd_age)
#> 
#> 
#> |Age    |  value|
#> |:------|------:|
#> |min    |   1956|
#> |q1     |   1972|
#> |median |   1986|
#> |q3     |   1997|
#> |max    |   2006|
#> |mean   | 1984.3|
#> |sd     |   13.8|
#> |n      |    101|