Learn R Programming

joinspy (version 0.7.3)

join_diff: Compare Data Frame Before and After Join

Description

Shows a side-by-side comparison of key statistics before and after a join operation.

Usage

join_diff(before, after, by = NULL)

Value

Invisibly returns a comparison summary. Prints a formatted comparison.

Arguments

before

The original data frame (before joining).

after

The result data frame (after joining).

by

Optional. Column names to analyze for key statistics.

See Also

join_explain(), join_spy()

Examples

Run this code
before <- data.frame(id = 1:3, x = letters[1:3])
after <- data.frame(id = c(1, 2, 2, 3), x = c("a", "b", "b", "c"), y = 1:4
)

join_diff(before, after)

Run the code above in your browser using DataLab