cb_init: Initialize autocodebook session

View source: R/00_state.R

cb_initR Documentation

Initialize autocodebook session

Description

Resets the codebook and tracking logs and sets the ID column used for counting unique individuals in track_step().

Usage

cb_init(id_col = "id", verbose = FALSE, default_cache = FALSE)

Arguments

id_col

Character. Name of the unique identifier column. Default: "id".

verbose

Logical. If TRUE, prints diagnostic messages from track_step(), auto_filter(), and cb_checkpoint(). Default: FALSE (matches v0.1.0 behavior - silent).

default_cache

Logical. If TRUE, big-data verbs cache intermediate results in Spark by default. Can be overridden per-call. Default: FALSE.

Value

Invisible NULL.

Examples

cb_init(id_col = "id_cidacs_pop100_v2")
cb_init(id_col = "id", verbose = TRUE, default_cache = TRUE)

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