sframe_codebook_items_display: Enrich a codebook's items table for display

View source: R/reporting.R

sframe_codebook_items_displayR Documentation

Enrich a codebook's items table for display

Description

Replaces items_table's choice_set id with the choice set's actual response options ("1 = Strongly disagree; 2 = Disagree; ...") and its scale_id with the scale's label, so each row of the printed codebook is self-contained. codebook_report() itself keeps the raw ids (for joining items_table to choices_table/scales_table programmatically); this is for the rendered document, where a reader should not need to cross-reference a separate table just to see what "1" means on a scale shared by many items.

Usage

sframe_codebook_items_display(cb)

Arguments

cb

An sframe_codebook object from codebook_report().

Value

A data.frame, cb$items_table with choice_set and scale_id replaced by display text.

See Also

codebook_report()


surveyframe documentation built on July 25, 2026, 1:07 a.m.