Learn R Programming

scrutiny (version 1.0.0)

audit-special: Classes of sequence and total-n mapper output

Description

audit() summarizes the output of functions made by function_map_seq(), such as grim_map_seq(), and of those made by function_map_total_n(), such as grim_map_total_n(), with one row per case. The columns of each summary are described in the documentation of the respective mapper.

Such output carries the generic class "scrutiny_map_seq" or "scrutiny_map_total_n", which audit() dispatches on, and a class for the particular mapper, listed below, so that you can write your own S3 methods for it. The summaries have the class "scrutiny_audit_seq" or "scrutiny_audit_total_n", which audit() summarizes further.

Arguments

Sequence mappers

FunctionClass
grim_map_seq()"scrutiny_grim_map_seq"
grimmer_map_seq()"scrutiny_grimmer_map_seq"
debit_map_seq()"scrutiny_debit_map_seq"
percentage_of_map_seq()"scrutiny_percentage_of_map_seq"

Total-n mappers

FunctionClass
grim_map_total_n()"scrutiny_grim_map_total_n"
grimmer_map_total_n()"scrutiny_grimmer_map_total_n"
debit_map_total_n()"scrutiny_debit_map_total_n"

Examples

Run this code
out <- pigs1 |>
  grim_map_seq(digits_x = 2, items_averaged = 1, data_type = "integer") |>
  audit()
out

# `audit()` summarizes the summary:
audit(out)

Run the code above in your browser using DataLab