View source: R/explain-print.R
| explain_print | R Documentation |
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.
explain_print(data, ...)
data |
Data frame returned by |
... |
Optionally, the rows to print, as in |
data, invisibly.
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.