Learn R Programming

clinCompare (version 1.0.0)

.print_observation_diffs: Print Observation-Level Differences (Internal Helper)

Description

Shared helper used by both print.dataset_comparison and print.cdisc_comparison. Prints a summary line, a per-variable table, and up to n rows of the top variable's differing observations.

Usage

.print_observation_diffs(obs, n = 30, id_details = NULL, n_total_obs = NULL)

Value

Called for side effects (prints to console). Returns NULL invisibly.

Arguments

obs

Observation comparison list (with discrepancies, details, and optionally id_details and message).

n

Maximum number of differing rows to display (default 30).

id_details

Optional named list of ID detail data frames (from key-based comparison).

n_total_obs

Total number of observations (for percentage calculation).