track_step: Record a tracking step

View source: R/04_tracking.R

track_stepR Documentation

Record a tracking step

Description

Counts unique individuals in the current data and logs the step. Works with both tbl_spark and local data frames.

Usage

track_step(sdf, step_label, description = "", assume_unique = FALSE)

Arguments

sdf

A Spark DataFrame or local data frame.

step_label

Short label for the step.

description

Longer description.

assume_unique

Logical. If TRUE, skips the distinct() call when counting (use only when you are certain the ID column has no duplicates at this stage - e.g. after a deduplication step). Default: FALSE.

Value

Invisible integer: number of unique IDs.


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