cb_register: Manually register a variable in the codebook

View source: R/03_register.R

cb_registerR Documentation

Manually register a variable in the codebook

Description

Use when auto_mutate/auto_summarise doesn't apply - e.g. variables created via window_order + row_number in a separate pipeline step.

Usage

cb_register(
  var,
  label,
  type = NULL,
  source = "",
  categories = "",
  code = "",
  block = ""
)

Arguments

var

Variable name (character).

label

Human-readable description.

type

Optional. If NULL, defaults to "character".

source

Optional. Source column(s).

categories

Optional. Category descriptions.

code

Optional. Code that generated the variable.

block

Optional. Pipeline block label.

Value

Invisible NULL.


autocodebook documentation built on June 9, 2026, 1:09 a.m.