Learn R Programming

chronicler (version 0.2.2)

check_diff: Check the output of the diff column

Description

Check the output of the diff column

Usage

check_diff(.c, columns = c("ops_number", "function"))

Value

A data.frame with the selected columns and column "diff_obj".

Arguments

.c

A chronicle object.

columns

Columns to select for the output. Defaults to c("ops_number", "function").

Details

`diff` is an option argument to the `record()` function. When `diff` = "full", a diff of the input and output of the decorated function gets saved, and if `diff` = "summary" only a summary of the diff is saved.

Examples

Run this code
r_subset <- record(subset, diff = "full")
result <- r_subset(mtcars, select = am)
check_diff(result) # <- this is the data frame listing the operations and the accompanying diffs
check_diff(result)$diff_obj # <- actually look at the diffs

Run the code above in your browser using DataLab