explain_print: Print the explanations of mapper results

View source: R/explain-print.R

explain_printR Documentation

Print the explanations of mapper results

Description

[Experimental]

explain_print() prints the explanations behind the results of a mapper such as grim_map(), one row after the other. It calls explain_map() on the printed rows only.

Usage

explain_print(data, ...)

Arguments

data

Data frame returned by grim_map(), grimmer_map(), or debit_map(), or by their sequence and total-n mappers.

...

Optionally, the rows to print, as in dplyr::slice(): positive integers to keep rows, negative ones to drop them. Default is to print all rows.

Value

data, invisibly.

Examples

pigs1 |>
  grim_map(digits_x = 2, items_averaged = 1, data_type = "integer") |>
  explain_print(1:2)

# Inconsistent rows only:
pigs1 |>
  grim_map(digits_x = 2, items_averaged = 1, data_type = "integer") |>
  dplyr::filter(!consistency) |>
  explain_print()

scrutiny documentation built on Nov. 11, 2026, 1:09 a.m.