Learn R Programming

scrutiny (version 1.0.0)

reverse_map_total_n: Reconstruct the input of a total-n mapper

Description

reverse_map_total_n() takes the output of a function made by function_map_total_n() and reconstructs the reported columns of the data frame it was called on. audit() builds on it for total-n output.

Usage

reverse_map_total_n(data)

Value

A tibble with the reported columns, such as x1, x2, and n, one row per case.

Arguments

data

Data frame with the "scrutiny_map_total_n" class.

Examples

Run this code
df <- tibble::tribble(
  ~x1,  ~x2,  ~n,
  3.43, 5.28, 90,
  2.97, 4.42, 103
)

out <- grim_map_total_n(
  df,
  digits_x = 2,
  items_averaged = 1,
  data_type = "integer"
)

reverse_map_total_n(out)

Run the code above in your browser using DataLab